Comment 2 for bug 926278

Revision history for this message
srepmub (mark-dufour) wrote :

I have no idea if this will break other things, but adding __iter__ here at least fixes my test case:

Products.ZSQLMethods-2.13.4-py2.7.egg/Shared/DC/ZRDB/Results.py:

      class r(Record, Implicit, brains, zbrains):
            'Result record class'

+ def __iter__(self):
+ return iter([self[i] for i in range(len(self))])