(self, config=None, **kwargs)
Initialize a base Pylons WSGI application

        The base Pylons WSGI application requires several keywords, the
        package name, and the globals object. If no helpers object is
        provided then h will be None.
Initialize a base Pylons WSGI application
Initialize a base Pylons WSGI application
def __init__(self, config=None, **kwargs):
        """Initialize a base Pylons WSGI application

        The base Pylons WSGI application requires several keywords, the
        package name, and the globals object. If no helpers object is
        provided then h will be None.

        """
        self.config = config = config or pylons.config._current_obj()
        package_name = config['pylons.package']
        self.helpers = config['pylons.h']
        self.globals = config.get('pylons.app_globals')
        self.environ_config = config['pylons.environ_config']
        self.package_name = package_name
        self.request_options = config['pylons.request_options']
        self.response_options = config['pylons.response_options']
        self.controller_classes = {}
        self.log_debug = False
        self.config.setdefault('lang', None)

        # Cache some options for use during requests
        self._session_key = self.environ_config.get('session', 'beaker.session')
        self._cache_key = self.environ_config.get('cache', 'beaker.cache')
def __init__ ( self , config = None , * * kwargs ) : self . config = config = config or pylons . config . _current_obj ( ) package_name = config [ 'pylons.package' ] self . helpers = config [ 'pylons.h' ] self . globals = config . get ( 'pylons.app_globals' ) self . environ_config = config [ 'pylons.environ_config' ] self . package_name = package_name self . request_options = config [ 'pylons.request_options' ] self . response_options = config [ 'pylons.response_options' ] self . controller_classes = { } self . log_debug = False self . config . setdefault ( 'lang' , None ) # Cache some options for use during requests self . _session_key = self . environ_config . get ( 'session' , 'beaker.session' ) self . _cache_key = self . environ_config . get ( 'cache' , 'beaker.cache' )