def enable_appstats(app):
  try:
    from google.appengine.ext.appstats.recording import appstats_wsgi_middleware
    app.app = appstats_wsgi_middleware(app.app)
  except Exception, e:
    logging.error(
      'Failed to initialize AppStats. Exception encountered: "' + str(e) + '".')
  return app
Editing a post without permissions returns 403.
dataset/ETHPy150Open gregorynicholas/flask-gae_runtools/gae_runtools.py/enable_appstats--crossover with--dataset/ETHPy150Open mozilla/kitsune/kitsune/forums/tests/test_views.py/ThreadPermissionsTests.test_post_edit_403