[docs]defmain(global_config,**settings):""" 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 sessionsCoreOpSession.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():""" Make and return the WSGI app (generic entry point). """returnbase.make_wsgi_app(main)
[docs]defmake_asgi_app():""" Make and return the ASGI app (generic entry point). """returnbase.make_asgi_app(main)