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):
http://cvs.eby-sarna.com/pylib/TW/Builders.py.diff?r1=1.24&r2=1.25
http://cvs.eby-sarna.com/pylib/TW/Components.py.diff?r1=1.36&r2=1.37
http://cvs.eby-sarna.com/pylib/TW/Interfaces.py.diff?r1=1.11&r2=1.12
http://cvs.eby-sarna.com/pylib/TW/Specifications.py.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/pylib/TW/MOF/MMX.py.diff?r1=1.4&r2=1.5
http://cvs.eby-sarna.com/pylib/TW/StructuralModel/Basic.py.diff?r1=1.16&r2=1.17
http://cvs.eby-sarna.com/pylib/TW/UML/Model.py.diff?r1=1.13&r2=1.14
http://cvs.eby-sarna.com/pylib/TW/Utils/ClassTypes.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.eby-sarna.com/pylib/TW/Utils/IndentedStream.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.eby-sarna.com/pylib/TW/Utils/Misc.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.eby-sarna.com/pylib/TW/Utils/Pluralizer.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.eby-sarna.com/pylib/TW/Utils/SOX.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.eby-sarna.com/pylib/TW/Utils/__init__.py?rev=1.1&content-type=text/vnd.viewcvs-markup
http://cvs.eby-sarna.com/pylib/TW/XMI/Reading.py.diff?r1=1.13&r2=1.14
http://cvs.eby-sarna.com/pylib/TW/tests/SOX.py.diff?r1=1.2&r2=1.3

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 \
    pylib/TW/Utils/__init__.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