> class MySchema(validators.Schema):
>
> olpwd = validators.All(
> validators.UnicodeString(max=40),
> ValidPassword)
> newpwd = validators.Any(
> validators.UnicodeString(min=8, max=40),
> validators.Empty,
> )
> rewpd = validators.UnicodeString(if_empty=None)
> chained_validators = [validators.All(
> validators.FieldsMatch('newpd', 'repwd'),
> validators.RequireIfPresent(required='oldpwd', present='newpwd')
> )]
Thanks dear,
Its working now.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---