[docs]defmain(global_config,**settings):# pylint: disable=unused-argument""" Make and return the WSGI app (Paste entry point). """# prefer Sideshow templates over wuttawebsettings.setdefault("mako.directories",["sideshow.web:templates","wuttaweb:templates",],)# make config objectswutta_config=base.make_wutta_config(settings)pyramid_config=base.make_pyramid_config(settings)# configure DB sessionsifhasattr(wutta_config,"core_office_op_engine"):CoreOpSession.configure(bind=wutta_config.core_office_op_engine)# bring in the rest of Sideshowpyramid_config.include("sideshow.web")pyramid_config.include("sideshow_corepos.web")returnpyramid_config.make_wsgi_app()
[docs]defmake_wsgi_app(config=None):""" Make and return the WSGI app (generic entry point). """returnbase.make_wsgi_app(main,config=config)
[docs]defmake_asgi_app(config=None):""" Make and return the ASGI app (generic entry point). """returnbase.make_asgi_app(main,config=config)