E&S CVS Commit: pylib - Upgrades/refactoring of SOX. Node() objects can now be initialized with

pje at eby-sarna.com pje at eby-sarna.com
Sat Jul 14 20:53:00 EDT 2001


Module Name:	pylib
Committed By:	pje
Date:		Sun Jul 15 00:52:14 UTC 2001

Modified Files:
	pylib/TW: SOX.py
	pylib/TW/UML: MMX.py
	pylib/TW/XMI: Reading.py

Log Message:
Upgrades/refactoring of SOX.  Node() objects can now be initialized with
keyword arguments, and subclasses may define an '_acquiredAttrs' sequence
which specifies attributes to be copied from parent nodes (if they are not
already defined in the instance's dictionary).  Also, SOX.load() now takes
a document object instead of a document constructor; this makes it easier
to set up root objects that need context or parameters.  One downside to
the new _acquiredAttrs/_acquireFrom() protocol is that it can conflict with
XML attribute names - so be sure to name any special attributes so as to
avoid such conflicts.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/pylib/TW/SOX.py.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/pylib/TW/UML/MMX.py.diff?r1=1.19&r2=1.20
http://cvs.eby-sarna.com/pylib/TW/XMI/Reading.py.diff?r1=1.5&r2=1.6

To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 pylib/TW/SOX.py
cvs rdiff -r1.19 -r1.20 pylib/TW/UML/MMX.py
cvs rdiff -r1.5 -r1.6 pylib/TW/XMI/Reading.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