]> ToastFreeware Gitweb - philipp/winterrodeln/wrfeed.git/blob - wrfeed/lib/app_globals.py
Added comment for region processing.
[philipp/winterrodeln/wrfeed.git] / wrfeed / lib / app_globals.py
1 """The application's Globals object"""
2
3 from beaker.cache import CacheManager
4 from beaker.util import parse_cache_config_options
5
6 class 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))