Changeset 558
- Timestamp:
- 06/12/03 15:34:25 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBFoundation/RBFoundation/Objects/Properties.py
r554 r558 24 24 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 25 25 26 from RBFoundation import BindCallable26 from RBFoundation import ContextApply 27 27 28 28 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ … … 79 79 80 80 def __init__(self, LazyFactory, *args, **kw): 81 self.LazyFactory = BindCallable.CurryCallable(LazyFactory, *args, **kw)81 self.LazyFactory = ContextApply.ContextApply_s(LazyFactory, *args, **kw) 82 82 83 83 def GetValue(self, obj): 84 84 return self.LazyFactory() 85 85 86 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 87 88 class LazyObjectProperty(CachedPropertyBase): 89 namePrefix = '__lazy_' 90 91 def __init__(self, LazyFactory, *args, **kw): 92 self.LazyFactory = ContextApply.ContextApply_p_s(LazyFactory, *args, **kw) 93 94 def GetValue(self, obj): 95 return self.LazyFactory(obj) 96
