Mike-

Any comments on this:

http://pylonshq.com/pasties/775

sorry i killed the docstrings on that ;)

now you can call
   validate_form( self, @validate args )

which returns true/false on form validation

the main thing i don't like about my refactoring: it's using some
caching to preserve info from decorator -> validation and validation -
> error .... in order to do this right, it would have to somehow stash
that cache with the classtype on the schema, so that a developer
doesn't validate a LoginForm then call an error with the
RegisterForm

anyways, this now works as proof-of-concept -- a dropin replacement
for @validate that is backwards compatible and gives future users the
ability to break free of decorator lockdown.  sweet.

smarter people: help me refactor!!!!!



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to