E&S CVS Commit: pylib - 'Utils' Package Created

pje at eby-sarna.com pje at eby-sarna.com
Sat Jan 19 18:39:00 EST 2002

Module Name:	pylib
Committed By:	pje
Date:		Sat Jan 19 23:38:47 UTC 2002

Modified Files:
	pylib/TW: Builders.py Components.py Interfaces.py Specifications.py
	pylib/TW/MOF: MMX.py
	pylib/TW/StructuralModel: Basic.py
	pylib/TW/UML: Model.py
	pylib/TW/XMI: Reading.py
	pylib/TW/tests: SOX.py
Added Files:
	pylib/TW/Utils: ClassTypes.py IndentedStream.py Misc.py Pluralizer.py
	    SOX.py __init__.py
Removed Files:
	pylib/TW: SOX.py Utilities.py

Log Message:
'Utils' Package Created

 Created new 'Utils' package by splitting 'TW.Utilities' into seperate
 modules and moving 'TW.SOX' to 'TW.Utils.SOX'.  From here on out, the
 'Utils' package will be for modules which:

  * Do not rely on any non-Utils TransWarp modules (but may rely on
    outside packages such as kjBuckets)

  * Are not needed by "consumers" of TransWarp APIs in order to use
    non-Utils TW modules

 In other words, 'TW.Utils' is for utility modules needed by TransWarp,
 but which may also be useful outside of TransWarp.  'TW.SOX' was moved
 to 'TW.Utils.SOX' since it fits this description.  'TW.Callbacks',
 however, is staying put because in the future some TransWarp APIs may
 require parameters which implement 'ICallback'.

 Both 'TW.Callbacks' and 'TW.Utils.SOX' are useful outside of the
 TransWarp package itself.  The difference is that 'TW.Utils.SOX' is
 never needed by a caller in order to use TransWarp's APIs, but
 'TW.Callbacks' might be.

 Some additional packaging changes will be coming; see the TransWarp
 mailing list for details.

Other Changes

 While doing the package re-org, I also cleaned up a few minor nits
 caused by the previous requirement for compatibility with Python
 1.5.2, and did some prep for type/class unification in Python 2.2.
 Last, but not least, I stomped all the remaining uses of the 'string'
 module and replaced them with string method calls.  I'm not positive,
 but this appears to have sped things up just a teensy bit.

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.24 -r1.25 pylib/TW/Builders.py
cvs rdiff -r1.36 -r1.37 pylib/TW/Components.py
cvs rdiff -r1.11 -r1.12 pylib/TW/Interfaces.py
cvs rdiff -r1.4 -r0 pylib/TW/SOX.py
cvs rdiff -r1.2 -r1.3 pylib/TW/Specifications.py
cvs rdiff -r1.7 -r0 pylib/TW/Utilities.py
cvs rdiff -r1.4 -r1.5 pylib/TW/MOF/MMX.py
cvs rdiff -r1.16 -r1.17 pylib/TW/StructuralModel/Basic.py
cvs rdiff -r1.13 -r1.14 pylib/TW/UML/Model.py
cvs rdiff -r0 -r1.1 pylib/TW/Utils/ClassTypes.py \
    pylib/TW/Utils/IndentedStream.py pylib/TW/Utils/Misc.py \
    pylib/TW/Utils/Pluralizer.py pylib/TW/Utils/SOX.py \
cvs rdiff -r1.13 -r1.14 pylib/TW/XMI/Reading.py
cvs rdiff -r1.2 -r1.3 pylib/TW/tests/SOX.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