On 17.07.2006, at 09:46, Lorenzo Gil Sanchez wrote:

Hi,

I found a bug in FilterMapping class of the z3c.multiform package. Basically the problem is due to the way the __len__ method is computed.

Attached is a tiny patch for this bug. Feel free to use any copyright ownership you want for it.

thx, it's checked in




Regards

Lorenzo
Index: multiform/gridform.py
===================================================================
--- multiform/gridform.py       (revisiĆ³n: 69125)
+++ multiform/gridform.py       (copia de trabajo)
@@ -129,7 +129,7 @@

     def __len__(self):
         '''See interface `IReadContainer`'''
-        return len(self.keys())
+        return len(tuple(self.keys()))

     def __contains__(self, key):
         '''See interface `IReadContainer`'''
_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

_______________________________________________
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users

Reply via email to