Changeset 3
- Timestamp:
- 02/04/02 20:52:01 (7 years ago)
- Files:
-
- trunk/RBPrivate/Prototypes/Shane/Composite.py (modified) (6 diffs)
- trunk/RBPrivate/Prototypes/Shane/ContextApply.py (added)
- trunk/RBPrivate/Prototypes/Shane/SubjectObserver.py (added)
- trunk/RBPrivate/Prototypes/Shane/XMLBuilder.py (added)
- trunk/RBPrivate/Prototypes/Shane/XMLClassBuilder.py (added)
- trunk/RBPrivate/Prototypes/Shane/XMLObjectify.py (added)
- trunk/RBPrivate/Prototypes/Shane/context_apply.py (deleted)
- trunk/RBPrivate/Prototypes/Shane/subject_observer.py (deleted)
- trunk/RBPrivate/Prototypes/Shane/xml_builder.py (deleted)
- trunk/RBPrivate/Prototypes/Shane/xml_classbuilder.py (deleted)
- trunk/RBPrivate/Prototypes/Shane/xml_objectify.py (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/RBPrivate/Prototypes/Shane/Composite.py
r1 r3 3 3 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 4 5 class composite_simple(list):5 class CompositeSimple(list): 6 6 def __call__(self, method): 7 7 for each in self: method(each) … … 9 9 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 10 10 11 class composite_simple_result(list):11 class CompositeSimpleResult(list): 12 12 def __call__(self, method): 13 13 return [method(each) for each in self] … … 15 15 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 16 16 17 class composite_callable(list):17 class CompositeCallable(list): 18 18 def __call__(self, *args, **kw): 19 19 for each in self: apply(each, args, kw) … … 21 21 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 22 22 23 class composite_callable_result(list):23 class CompositeCallableResult(list): 24 24 def __call__(self, *args, **kw): 25 25 return [apply(each, args, kw) for each in self] … … 27 27 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 28 28 29 class composite_params(list):29 class CompositeParams(list): 30 30 def __call__(self, method): 31 31 for each in self: apply(method, each) … … 33 33 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 34 34 35 class composite_params_result(list):35 class CompositeParamsResult(list): 36 36 def __call__(self, method): 37 37 return [apply(method, each) for each in self]
