Changeset 7597 for cowsserver


Ignore:
Timestamp:
12/10/10 14:26:25 (9 years ago)
Author:
astephen
Message:

Fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsserver/tags/1.6.0-py2.6/lib/cowsserver/lib/app_globals.py

    r5403 r7597  
    11"""The application's Globals object""" 
    22from pylons import config 
     3 
     4from beaker.cache import CacheManager 
     5from beaker.util import parse_cache_config_options 
    36 
    47class Globals(object): 
     
    710    """ 
    811 
    9     def __init__(self): 
     12    def __init__(self, config): 
    1013        """One instance of Globals is created during application 
    1114        initialization and is available during requests via the 'g' 
    1215        variable 
    1316        """ 
    14         pass 
     17        self.cache = CacheManager(**parse_cache_config_options(config)) 
     18 
     19 
Note: See TracChangeset for help on using the changeset viewer.