does this new approach allow for form errors to be re-triggered in the
controller like my stab (
http://groups.google.com/group/pylons-discuss/browse_thread/thread/4269ca745e31793
) ?
because that's the only thing i care about.
example:
from OpenSocialNetwork.lib.decorators import osn_validate ,
osn_form_error
from OpenSocialNetwork.lib.errors import SubmissionError
@osn_validate( schema=Forms_Checkout.Shipping_1() ,
form='_checkout_shipping__print' , post_only=True )
def _checkout_shipping__submit(self):
try:
raise SubmissionError('Whatever')
except SubmissionError , e :
h.formerrors_set( message='!!!' )
return osn_form_reprint( self , '_checkout_shipping__print' )
except :
raise
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en.