E&S CVS Commit: PEAK - Added a new "attribute metadata" mini-framework to 'peak.binding'. This

pje at eby-sarna.com pje at eby-sarna.com
Tue Nov 23 15:38:01 EST 2004


Module Name:	PEAK
Committed By:	pje
Date:		Tue Nov 23 20:37:48 UTC 2004

Modified Files:
	PEAK: CHANGES.txt
	PEAK/src/peak/binding: attributes.py attributes.txt components.py
	    once.py

Log Message:
Added a new "attribute metadata" mini-framework to 'peak.binding'.  This
framework makes it possible to declare arbitrary metadata about attributes,
using either a class advisor ('binding.metadata()', similar in form and
function to the existing 'security.allow()') or using a 'metadata' attribute
of attribute bindings (which is the second positional parameter in all
the standard bindings like 'Make', 'Obtain', etc.).  Over time, existing
metadata mechanisms will be refactored to use this new mini-framework,
instead of the various integrated ad-hoc mechanisms that exist now (like
the 'permissionNeeded' attribute).  For more information on how the new
metadata hooks work, including doctest examples, see the 'attributes.txt'
file in the 'peak.binding' package, under the heading "Attribute Metadata".


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/CHANGES.txt.diff?r1=1.161&r2=1.162
http://cvs.eby-sarna.com/PEAK/src/peak/binding/attributes.py.diff?r1=1.1&r2=1.2
http://cvs.eby-sarna.com/PEAK/src/peak/binding/attributes.txt.diff?r1=1.1&r2=1.2
http://cvs.eby-sarna.com/PEAK/src/peak/binding/components.py.diff?r1=1.140&r2=1.141
http://cvs.eby-sarna.com/PEAK/src/peak/binding/once.py.diff?r1=1.72&r2=1.73

To generate a diff of this commit:
cvs rdiff -r1.161 -r1.162 PEAK/CHANGES.txt
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/binding/attributes.py \
    PEAK/src/peak/binding/attributes.txt
cvs rdiff -r1.140 -r1.141 PEAK/src/peak/binding/components.py
cvs rdiff -r1.72 -r1.73 PEAK/src/peak/binding/once.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