> if isinstance(onvalidation, dict):
>     before = onvalidation.get('before',lambda form: None)
>     after = onvalidation.get('after',lambda form: None)
>     if before:
>         before(self)
>     if status and after:
>         after(self)

ok with the part above

> elif isinstance(onvalidation, (list,tuple):
>     [f(self) for f in onvalidation]

this is done already inside FORM.accepts (which means
onvalidation['before'] can be a list or tuple.

It is more complex than it needs to be but if it works for you, works
for me.

Reply via email to