I do it this (very dumb and probably dangerous) way:
----- %< -----
class RequiredSchemaNode(colander.SchemaNode):
def deserialize(self, *args, **kw):
try:
return super(RequiredSchemaNode, self).deserialize(*args, **kw)
except (colander.Invalid,), e:
if e.args[-1] == 'Required':
raise colander.Invalid(self, _('Required input is missing.'))
raise
----- %< -----
I hope at least give you an idea.
> --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/pylons-discuss/-/uF71jHsbIv0J.
> To post to this group, send email to
pylons-...@googlegroups.com.
> To unsubscribe from this group, send email to
>
pylons-discus...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/pylons-discuss?hl=en.
>
>