E&S CVS Commit: PEAK - Package inheritance support: 'config.setupModule()' now automatically

pje at eby-sarna.com pje at eby-sarna.com
Sat Apr 5 13:19:01 EST 2003


Module Name:	PEAK
Committed By:	pje
Date:		Sat Apr  5 18:18:41 UTC 2003

Modified Files:
	PEAK/src/peak/config: modules.py
	PEAK/src/peak/config/tests: testM1.py
	PEAK/src/peak/metamodels/UML13: __init__.py
	PEAK/src/peak/metamodels/UML13/Foundation: Core.py __init__.py
	PEAK/src/peak/util: imports.py

Log Message:
Package inheritance support: 'config.setupModule()' now automatically
munges the '__path__' of inheriting packages for you.  Also, '__bases__'
can now contain '/'-separated relative or absolute paths to the desired
base modules (i.e. you don't have to import them yourself).  Last, but not
least, you can now inherit from modules that don't call 'setupModule()'!
This means that you can now re-use code from non-PEAK packages and totally
bend them to your will!  As long as their code is 1) pure Python, and 2)
available from a .py or .pyc file on disk, that is.

Documented these new features, updated tests and other misc. code to match.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/config/modules.py.diff?r1=1.9&r2=1.10
http://cvs.eby-sarna.com/PEAK/src/peak/config/tests/testM1.py.diff?r1=1.1&r2=1.2
http://cvs.eby-sarna.com/PEAK/src/peak/metamodels/UML13/__init__.py.diff?r1=1.2&r2=1.3
http://cvs.eby-sarna.com/PEAK/src/peak/metamodels/UML13/Foundation/Core.py.diff?r1=1.4&r2=1.5
http://cvs.eby-sarna.com/PEAK/src/peak/metamodels/UML13/Foundation/__init__.py.diff?r1=1.1&r2=1.2
http://cvs.eby-sarna.com/PEAK/src/peak/util/imports.py.diff?r1=1.5&r2=1.6

To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 PEAK/src/peak/config/modules.py
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/config/tests/testM1.py
cvs rdiff -r1.2 -r1.3 PEAK/src/peak/metamodels/UML13/__init__.py
cvs rdiff -r1.4 -r1.5 PEAK/src/peak/metamodels/UML13/Foundation/Core.py
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/metamodels/UML13/Foundation/__init__.py
cvs rdiff -r1.5 -r1.6 PEAK/src/peak/util/imports.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