appobject.py
branchstable
changeset 2099 0cba78f4fa12
parent 2098 13aab3775af7
child 2144 51c84d585456
equal deleted inserted replaced
2098:13aab3775af7 2099:0cba78f4fa12
    23 ONESECOND = timedelta(0, 1, 0)
    23 ONESECOND = timedelta(0, 1, 0)
    24 
    24 
    25 class Cache(dict):
    25 class Cache(dict):
    26     def __init__(self):
    26     def __init__(self):
    27         super(Cache, self).__init__()
    27         super(Cache, self).__init__()
    28         self.cache_creation_date = None
    28         _now = datetime.now()
    29         self.latest_cache_lookup = datetime.now()
    29         self.cache_creation_date = _now
       
    30         self.latest_cache_lookup = _now
    30 
    31 
    31 CACHE_REGISTRY = {}
    32 CACHE_REGISTRY = {}
    32 
    33 
    33 class AppRsetObject(VObject):
    34 class AppRsetObject(VObject):
    34     """This is the base class for CubicWeb application objects
    35     """This is the base class for CubicWeb application objects