E&S CVS Commit: ZProducts - Changes to support Zope's deprecation of 'id' in favor of getId()/_setId().

pje at eby-sarna.com pje at eby-sarna.com
Wed Jul 11 12:26:00 EDT 2001


Module Name:	ZProducts
Committed By:	pje
Date:		Wed Jul 11 16:25:27 UTC 2001

Modified Files:
	ZProducts/ZPatterns: DataSkins.py Rack.py

Log Message:
Changes to support Zope's deprecation of 'id' in favor of getId()/_setId().
Should be fully backward-compatible with most existing code, but opens up
a possible hole if you define an attribute setter which needs to know the
id in order to store the attribute being used to store the id!  This is
mostly a danger with a provider which is storing '*' (i.e. any attribute).
The fix is to explicitly "STORE id IN SELF" or equivalent prior to the
wildcarded provider.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/ZProducts/ZPatterns/DataSkins.py.diff?r1=1.58&r2=1.59
http://cvs.eby-sarna.com/ZProducts/ZPatterns/Rack.py.diff?r1=1.80&r2=1.81

To generate a diff of this commit:
cvs rdiff -r1.58 -r1.59 ZProducts/ZPatterns/DataSkins.py
cvs rdiff -r1.80 -r1.81 ZProducts/ZPatterns/Rack.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