I've noticed that for identity-restricted methods, the new,
less-specific means of identifying the template to be used (i.e.
".templates.templatename") doesn't work. I must still specify
"projectname.templates.templatename", otherwise I get an error about
module "templates" not existing.
-Mike
Mike, I noticed that last night, but I thought it was just lack of
sleep. It only seems to have a problem after authenticating. I wonder
whether it has anything to do with the order of the decorators...
Jeff
In fact it does: _execute_func pulls the __module__ attribute of the
funcion, however, if the function is decorated, the __module__ will be
incorrect. You can also demonstrate this problem by including an
inputform or validators parameter to the expose decorator (because
expose decorates your function with validate internally).
Is there no way to introspect the decorator chain? I suppose not because
we're using closures here... but I wouldn't be surprised if someone's
solved this.
Jeff
--
Jeff Watkins
http://newburyportion.com/
Ticket #388.