selectors.py
changeset 5568 83acff1b50cc
parent 5567 bb97cd6ded2d
child 5627 a7e40cccdc9b
equal deleted inserted replaced
5567:bb97cd6ded2d 5568:83acff1b50cc
   559             return num > 1
   559             return num > 1
   560         return num == self.expected
   560         return num == self.expected
   561 
   561 
   562     @lltrace
   562     @lltrace
   563     def __call__(self, cls, req, rset=None, **kwargs):
   563     def __call__(self, cls, req, rset=None, **kwargs):
   564         return rset is not None and self.match_expected(rset.rowcount)
   564         return int(rset is not None and self.match_expected(rset.rowcount))
   565 
   565 
   566 
   566 
   567 class multi_columns_rset(multi_lines_rset):
   567 class multi_columns_rset(multi_lines_rset):
   568     """If `nb` is specified, return 1 if the result set has exactly `nb` column
   568     """If `nb` is specified, return 1 if the result set has exactly `nb` column
   569     per row. Else (`nb` is None), return 1 if the result set contains *at least*
   569     per row. Else (`nb` is None), return 1 if the result set contains *at least*