[Zope3-Users] small bug in z3c.multiform package

Bernd Dorn zope-mailinglist at mopa.at
Mon Jul 17 07:19:51 EDT 2006


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 at zope.org
> http://mail.zope.org/mailman/listinfo/zope3-users



More information about the Zope3-users mailing list