E&S CVS Commit: PEAK - Changes to allow component classes to be part of a component hierarchy.
pje at eby-sarna.com
pje at eby-sarna.com
Thu Nov 21 21:20:01 EST 2002
Module Name: PEAK
Committed By: pje
Date: Fri Nov 22 02:19:18 UTC 2002
Modified Files:
PEAK/src/peak/binding: components.py
Log Message:
Changes to allow component classes to be part of a component hierarchy.
The problem was that if a class defines 'getParentComponent()' for its
instances, there was no way for it to define 'getParentComponent()' for
itself! Now all such API's are called on an object's '__class__', passing
in the instance. This means that if a class is used as a component, its
metaclass 'getParentComponent()' will be called on it, producing the right
result in context. Similar changes were made for other IBindingSPI methods
such as '_getConfigData()' and 'getComponentName()'. These changes are
needed to support peak.model class families that need their features to
refer to other classes in the class family -- the element classes need to
be used as context components for the features.
To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/binding/components.py.diff?r1=1.66&r2=1.67
To generate a diff of this commit:
cvs rdiff -r1.66 -r1.67 PEAK/src/peak/binding/components.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
More information about the source-changes
mailing list