E&S CVS Commit: PEAK - Misc. fixes and tests for protocols:
pje at eby-sarna.com
pje at eby-sarna.com
Mon May 26 14:47:00 EDT 2003
Module Name: PEAK
Committed By: pje
Date: Mon May 26 18:46:16 UTC 2003
Modified Files:
PEAK/src/protocols: advice.py api.py classic.py interfaces.py
PEAK/src/protocols/tests: test_direct.py
Log Message:
Misc. fixes and tests for protocols:
* Don't cache __mro__ for classic classes, since __bases__ could change
* Use "classic" MRO for classic classes when searching for adapters
* ProviderMixin wasn't supporting inherited declarations
* Zope adapters were broken for instance declarations
* Objects don't need to be IOpenProvider if the protocol supports instance
declarations (e.g. as Zope interfaces do)
* Ensure that instance declaration monkeypatching doesn't obscure a
__conform__ method supplied by an object's class
* Added tests for some of the above, and for other things that were already
done. More tests are still needed: Zope, ProviderMixin, changing
__bases__ on both providers and implementors, and declaration overrides
for providers and implementors.
To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/protocols/advice.py.diff?r1=1.5&r2=1.6
http://cvs.eby-sarna.com/PEAK/src/protocols/api.py.diff?r1=1.5&r2=1.6
http://cvs.eby-sarna.com/PEAK/src/protocols/classic.py.diff?r1=1.5&r2=1.6
http://cvs.eby-sarna.com/PEAK/src/protocols/interfaces.py.diff?r1=1.3&r2=1.4
http://cvs.eby-sarna.com/PEAK/src/protocols/tests/test_direct.py.diff?r1=1.1&r2=1.2
To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 PEAK/src/protocols/advice.py PEAK/src/protocols/api.py \
PEAK/src/protocols/classic.py
cvs rdiff -r1.3 -r1.4 PEAK/src/protocols/interfaces.py
cvs rdiff -r1.1 -r1.2 PEAK/src/protocols/tests/test_direct.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