webapp2 

Send to Kindle
home » snippets » python » webapp2



Snippets

Overriding dispatch

Ref: Overriding dispatch()

class BaseHandler(webapp2.RequestHandler):
  def dispatch(self):
    # Do some pre-dispatch stuff here.
    try:
      webapp2.RequestHandler.dispatch(self)
    finally:
      # Post-dispatch stuff here or after finally.