Hi all...
I am new to turbogears validators area.
I want to make my own validator using fancyvalidators.
I have this kind of schema.
class MySchema(validators.Schema):
host = validators.String(not_empty=True)
port = validators.Int(not_empty=True)
protocol = validators.String(not_empty=True)
oldpwd = validators.OneOf([conf['test']['passwd']])
newpwd = validators.String()
repwd = validators.String()
chained_validators = [validators.FieldsMatch('newpwd', 'repwd')]
Now i want one validators in which i want to perform :
"If any one enters oldpwd then it must be correct and also enter
newpwd also."
here im checking oldpwd from config file.
and its correct whatever im getting.
Thanks..
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---