On Mon, Oct 25, 2010 at 03:33:34PM +0530, Anand Chitipothu wrote:
> > Here's the patch modified, withouth magic and using validators attribute
> > instead of __validators__.
> 
> I didn't understand why you were trying to extend each input class.
> 
> How about this implementation?
> 
> http://github.com/anandology/webpy/commit/c2d616daa104043ccd68bd7cac04b809ce8dde20
> 

Because you're defining a named attribute before *validator, witch are unnamed.

__init__(self, name=None, *validators, **attrs):

I thougth it doesn't work... But trying I realize that the thing that doesn't
work is calling __init__(self, name="name", validator1, validator2, ...) so,
your solution is better :D

Attachment: signature.asc
Description: Digital signature

Reply via email to