On Feb 1, 2009, at 11:47 PM, Marcin Stępnicki wrote:
> def signin(self):
>
>if request.method == 'POST':
> try:
> (...)
> except formencode.Invalid, error:
> (...)
> else:
> (...)
>else:
>return formencode.htmlfill.render (
>
On Sun, Feb 1, 2009 at 11:47 PM, Marcin Stępnicki wrote:
>
> Hello.
>
> I use the following pattern in my applications:
>
> controller.py
>
> def signin(self):
>
>if request.method == 'POST':
> try:
> (...)
> except formencode.Invalid, error:
> (...)
> el
Hello.
I use the following pattern in my applications:
controller.py
def signin(self):
if request.method == 'POST':
try:
(...)
except formencode.Invalid, error:
(...)
else:
(...)
else:
return formencode.htmlfi