E&S CVS Commit: TransWarp - Removed the '__proceed__' limitaton on method templates by dropping the

pje at eby-sarna.com pje at eby-sarna.com
Tue Mar 26 14:47:00 EST 2002


Module Name:	TransWarp
Committed By:	pje
Date:		Tue Mar 26 19:46:57 UTC 2002

Modified Files:
	TransWarp/src/TW/API: Meta.py
	TransWarp/src/TW/SEF: Basic.py
	TransWarp/src/TW/SEF/tests: General.py
Added Files:
	TransWarp/src/TW/Utils: Method.py

Log Message:
Removed the '__proceed__' limitaton on method templates by dropping the
'__feature__' magic name rebinding.  It turned out to be easier to fix this
than to document it as a limitation.  :)

Method templates must now use a signature that looks like::

    def verb(feature, self, ...):

And drop the use of 'feature = self.__class__.__feature__', since it'll
now be supplied as an argument.

Updated documentation, tests, and current usages to match.  Interestingly,
the docs are now a little simpler, since *all* MethodExporter methods now
take the same first parameter, 'feature'.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/TransWarp/src/TW/API/Meta.py.diff?r1=1.9&r2=1.10
http://cvs.eby-sarna.com/TransWarp/src/TW/SEF/Basic.py.diff?r1=1.14&r2=1.15
http://cvs.eby-sarna.com/TransWarp/src/TW/SEF/tests/General.py.diff?r1=1.5&r2=1.6
http://cvs.eby-sarna.com/TransWarp/src/TW/Utils/Method.py?rev=1.1&content-type=text/vnd.viewcvs-markup

To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 TransWarp/src/TW/API/Meta.py
cvs rdiff -r1.14 -r1.15 TransWarp/src/TW/SEF/Basic.py
cvs rdiff -r1.5 -r1.6 TransWarp/src/TW/SEF/tests/General.py
cvs rdiff -r0 -r1.1 TransWarp/src/TW/Utils/Method.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