Blame | Last modification | View Log | RSS feed
# -*- coding: utf-8 -*-"""WSGI middleware initialization for the Wiki-20 application."""from wiki20.config.app_cfg import base_configfrom wiki20.config.environment import load_environment__all__ = ['make_app']# Use base_config to setup the necessary PasteDeploy application factory.# make_base_app will wrap the TG2 app with all the middleware it needs.make_base_app = base_config.setup_tg_wsgi_app(load_environment)def make_app(global_conf, full_stack=True, **app_conf):"""Set Wiki-20 up with the settings found in the PasteDeploy configurationfile used.:param global_conf: The global settings for Wiki-20 (thosedefined under the ``[DEFAULT]`` section).:type global_conf: dict:param full_stack: Should the whole TG2 stack be set up?:type full_stack: str or bool:return: The Wiki-20 application with all the relevant middlewareloaded.This is the PasteDeploy factory for the Wiki-20 application.``app_conf`` contains all the application-specific settings (those definedunder ``[app:main]``."""app = make_base_app(global_conf, full_stack=True, **app_conf)# Wrap your base TurboGears 2 application with custom middleware herereturn app