def loadapp(conf_file, global_conf=None, allow_modify_pipeline=True):
 global_conf = (global_conf or {})
 ctx = loadcontext(loadwsgi.APP, conf_file, global_conf=global_conf)
 if (ctx.object_type.name == 'pipeline'):
  app = ctx.app_context.create()
  func = getattr(app, 'modify_wsgi_pipeline', None)
  if (func and allow_modify_pipeline):
   func(PipelineWrapper(ctx))
 return ctx.create()

def loadapp ( conf_file , global_conf = None , allow_modify_pipeline = True ) : global_conf = ( global_conf or { } ) ctx = loadcontext ( loadwsgi . APP , conf_file , global_conf = global_conf ) if ( ctx . object_type . name == 'pipeline' ) : app = ctx . app_context . create ( ) func = getattr ( app , 'modify_wsgi_pipeline' , None ) if ( func and allow_modify_pipeline ) : func ( PipelineWrapper ( ctx ) ) return ctx . create ( )
loads a context from a config file .