def application(environ, start_response): environ.setdefault('config', local_config) return app(environ, start_response)
def application(environ, start_response): # use setdefault so unittests can override this environ.setdefault('cheesy2.metadata', _get_metadata) environ.setdefault('cheesy2.userdata', _get_userdata) return app(environ, start_response)