def paste_deploy_app(paste_config_file, app_name, conf):
 setup_paste_factories(conf)
 try:
  return deploy.loadapp(('config:%s' % paste_config_file), name=app_name)
 finally:
  teardown_paste_factories()

def paste_deploy_app ( paste_config_file , app_name , conf ) : setup_paste_factories ( conf ) try : return deploy . loadapp ( ( 'config:%s' % paste_config_file ) , name = app_name ) finally : teardown_paste_factories ( )
load a wsgi app from a pastedeploy configuration .