FormEncode mapping validator

1 view
Skip to first unread message

George Sakkis

unread,
Jun 8, 2007, 11:18:20 AM6/8/07
to TurboGears
Does anyone have a FormEncode-based validator for dicts (or mapping in
general) ? Something that can be used as:

@validate(validators={'name2email':
MappingValidator(key=validators.String(not_empty=True),

value=validators.Email())})
def register(self, name2email):
pass

Or maybe there is a better idiom for this ?


George

Reply all
Reply to author
Forward
0 new messages