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/src/peak/binding: attributes.py attributes.txt components.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):

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 \
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