equal
deleted
inserted
replaced
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 |