Changeset 554
- Timestamp:
- 06/12/03 09:15:24 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBFoundation/RBFoundation/Objects/Properties.py
r534 r554 46 46 47 47 class CachedPropertyBase(PropertyBase): 48 namePrefix = '__cache_' 49 48 50 def _CacheName(self, *args): 49 return '__cache_'+ self._GetName(*args)51 return self.namePrefix + self._GetName(*args) 50 52 51 53 def __get__(self, obj, klass): … … 74 76 75 77 class LazyProperty(CachedPropertyBase): 78 namePrefix = '__lazy_' 79 76 80 def __init__(self, LazyFactory, *args, **kw): 77 81 self.LazyFactory = BindCallable.CurryCallable(LazyFactory, *args, **kw) … … 80 84 return self.LazyFactory() 81 85 82 def _CacheName(self, *args):83 return '__lazy_' + self._GetName(*args)84
