Hello guys. Maybe someone knows how to do this.
If i have the following code:

 class UserAddSchema(validators.Schema):
        password = validators.String(not_empty=True)
        passwordConfirm = validators.String(not_empty=True)

        mytext= validators.String(not_empty=True)
        mytextConfirm= validators.String(not_empty=True)

        chained_validators =
[validators.FieldsMatch('passwordConfirm',
        'password'), MyTextValidator('mytext', 'mytextConfirm')]

How do i implement MyTextValidator?
Iam only interested in the structure of the class. How do i access the
values of 'mytext', mytextConfirm'?

Thanks a lot.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to