Did I find the right examples for you? yes no

All Samples(97)  |  Call(84)  |  Derive(0)  |  Import(13)

src/t/i/tipfy-HEAD/examples/auth/app/main.py   tipfy(Download)
def enable_appstats(app):
    """Enables appstats middleware."""
    from google.appengine.ext.appstats.recording import \
        appstats_wsgi_middleware
    app.wsgi_app = appstats_wsgi_middleware(app.wsgi_app)

src/o/p/openshift_web2py-HEAD/wsgi/web2py/appengine_config.example.py   openshift_web2py(Download)
def webapp_add_wsgi_middleware(app):
    from google.appengine.ext.appstats import recording
    app = recording.appstats_wsgi_middleware(app)
    return app
 

src/w/e/web2py-HEAD/examples/appengine_config.example.py   web2py(Download)
def webapp_add_wsgi_middleware(app):
    from google.appengine.ext.appstats import recording
    app = recording.appstats_wsgi_middleware(app)
    return app
 

src/g/a/gae-paypal-online-market-example-HEAD/app/appengine_config.py   gae-paypal-online-market-example(Download)
def webapp_add_wsgi_middleware(app):
    from google.appengine.ext.appstats import recording
    app = recording.appstats_wsgi_middleware(app)
    return app
 

src/p/y/PyDownTV2-HEAD/Web/flaskext/gae_mini_profiler/profiler.py   PyDownTV2(Download)
                self.recorder = recording.Recorder(environ)
                return old_app(environ, start_response)
            self.app = recording.appstats_wsgi_middleware(wrapped_appstats_app)
 
            # Turn on cProfile profiling for this request

src/h/e/healthvis-HEAD/appengine/flaskext/gae_mini_profiler/profiler.py   healthvis(Download)
                self.recorder = recording.Recorder(environ)
                return old_app(environ, start_response)
            self.app = recording.appstats_wsgi_middleware(wrapped_appstats_app)
 
            # Turn on cProfile profiling for this request

src/t/i/tipfy-HEAD/manage/stubs/appengine/main.py   tipfy(Download)
        return
 
    from google.appengine.ext.appstats.recording import appstats_wsgi_middleware
    app.wsgi_app = appstats_wsgi_middleware(app.wsgi_app)
 

src/t/i/tipfy-HEAD/docs/project/app/main.py   tipfy(Download)
        return
 
    from google.appengine.ext.appstats.recording import appstats_wsgi_middleware
    app.wsgi_app = appstats_wsgi_middleware(app.wsgi_app)
 

src/t/i/tipfy-HEAD/project/app/main.py   tipfy(Download)
def enable_appstats(app):
    """Enables appstats middleware."""
    from google.appengine.ext.appstats.recording import \
        appstats_wsgi_middleware
    app.dispatch = appstats_wsgi_middleware(app.dispatch)

src/n/e/network-mapper-HEAD/networkx-d3-v2/lib/djangoappengine/main/__init__.py   network-mapper(Download)
 
if getattr(settings, 'ENABLE_APPSTATS', False):
    from google.appengine.ext.appstats.recording import \
        appstats_wsgi_middleware
    application = appstats_wsgi_middleware(application)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next