Christopher Arndt schrieb:
> class MyCustomValidator(validators.FancyValidator):
>
> messages = {
> 'foo': 'Foo made a boo boo"
> }
>
> def validate_python(self, value, state):
> if not some_check(value):
> message = self.message('notUnique2', state)
Oops, copy-and-paste error: should be
message = self.message('foo', state)
of course.
Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---