source: TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/integration/pylonsapp/pylonsapp/lib/app_globals.py @ 7077

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/ndg_security_test/ndg/security/test/integration/pylonsapp/pylonsapp/lib/app_globals.py@7077
Revision 7077, 541 bytes checked in by pjkersha, 9 years ago (diff)
  • Property svn:keywords set to Id
RevLine 
[6868]1"""The application's Globals object"""
2
3from beaker.cache import CacheManager
4from beaker.util import parse_cache_config_options
5
6class Globals(object):
7
8    """Globals acts as a container for objects available throughout the
9    life of the application
10
11    """
12
13    def __init__(self, config):
14        """One instance of Globals is created during application
15        initialization and is available during requests via the
16        'app_globals' variable
17
18        """
19        self.cache = CacheManager(**parse_cache_config_options(config))
Note: See TracBrowser for help on using the repository browser.