BTW, I'm a fan of functional.
from gluon import current
def outer(view):
def wrap(f):
def wrapped_f():
current.response.view = view
return f()
return wrapped_f
return wrap
@outer('path/to/view')
def index():
return locals()
On Thursday, August 22, 2013 9:20:44 PM UTC+2, Niphlod wrote:
>
> uhm. I'm totally ok for decorators that save lots of typing.
> What's so different between
> @View('whatever')
> and
> response.view = 'whatever'
> ?
>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.