Changeset 7596


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

Missed file in new python 2.6 version.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cowsserver/trunk/lib/cowsserver/lib/app_globals.py

    r5403 r7596  
    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.