On Sat, 2005-11-12 at 12:54 -0500, Sean Cazzell wrote:
> @expose(template="myproject.templates.foo")
> @unpack(... validators and inputform stuff here ...)
> def foo(bar):
>     ...
> 
> or maybe even:
> 
> @expose(template="myproject.templates.foo")
> @validators( ... validator stuff ... )
> @form( ... form stuff ... )
> def foo(bar):
>     ...
> 
> My personal preference would be the latter - decorators should do only
> one thing.

Actually, now that I think about it, it makes more sense to only have
one decorator doing input processing since only one decorator can use
inspect to do introspection on your method (In the future, validators
will need to use inspect).

So put me down for +1 on splitting expose into two methods - one for
input processing and one for output processing.


Sean Cazzell

Reply via email to