Jeff Watkins wrote:
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...

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/

Reply via email to