def ContextMiddleware_filter_factory(global_conf, **local_conf):
 conf = global_conf.copy()
 conf.update(local_conf)
 def filter(app):
  return ContextMiddleware(app, conf)
 return filter

def ContextMiddleware_filter_factory ( global_conf , ** local_conf ) : conf = global_conf . copy ( ) conf . update ( local_conf ) def filter ( app ) : return ContextMiddleware ( app , conf ) return filter
factory method for paste .