On Jun 18, 4:19 am, Noah McIlraith wrote:
> Is there a better place to put @context.toplevel then at the top of all my
> get() and post() handler methods?
You can override dispatch() in a base handler:
class BaseHandler(RequestHandler):
@context.toplevel
def dispatch(self):
super(BaseHandler, self).dispatch()
> I'm not particularly familiar with how WSGI works, is it okay to decorate
> the main() function with @context.toplevel?
That won't work. :)
-- rodrigo