rset.py
changeset 9821 2077c8da1893
parent 9780 8e687be43d84
child 9820 3ad221fe04aa
equal deleted inserted replaced
9819:95902c0b991b 9821:2077c8da1893
   108             self._rsetactions[key] = actions
   108             self._rsetactions[key] = actions
   109             return actions
   109             return actions
   110 
   110 
   111     def __len__(self):
   111     def __len__(self):
   112         """returns the result set's size"""
   112         """returns the result set's size"""
   113         return self.rowcount
       
   114 
       
   115     def __nonzero__(self):
       
   116         return self.rowcount
   113         return self.rowcount
   117 
   114 
   118     def __getitem__(self, i):
   115     def __getitem__(self, i):
   119         """returns the ith element of the result set"""
   116         """returns the ith element of the result set"""
   120         return self.rows[i] #ResultSetRow(self.rows[i])
   117         return self.rows[i] #ResultSetRow(self.rows[i])