Hello.
I'm using pylons-0.9.6, formencode-0.7.1-r1
I try to validate controller with form:
-----------------------------------------------------
@validate(schema=...,form='register')
def register(self):
if not hasattr(self,'form_result'):
return render('/register.myt')
... do something with form_result...
return redirect_to('/redistered_ok')
-----------------------------------------------------
But pylons fall with
'exceptions.RuntimeError: maximum recursion depth exceeded in cmp'
It works if I'm using __different__ controllers form rendering form and
validating results:
-----------------------------------------------------
def register(self):
return render(...
@validate(schame=....,form='register')
def register_validate(self):
... do something with form_result ...
return redirect_to...
-----------------------------------------------------
What do I do wrong? Was this feature broken in new version of pylons?
P.S. The first code-block worked with pylons-0.9.5
Thanks.
-----
mailto: [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---