E&S CVS Commit: PEAK - Added 'url.*' family of DOMlets. 'url.foo' causes the tag's 'foo'

pje at eby-sarna.com pje at eby-sarna.com
Wed Aug 6 18:00:01 EDT 2003

Module Name:	PEAK
Committed By:	pje
Date:		Wed Aug  6 21:59:37 UTC 2003

Modified Files:
	PEAK: setup.py
	PEAK/src/peak: peak.ini
	PEAK/src/peak/web: places.py resources.py templates.py
	PEAK/src/peak/web/tests: test_resources.py
Added Files:
	PEAK/src/peak/web/tests: template2.pwt

Log Message:
Added 'url.*' family of DOMlets.  'url.foo' causes the tag's 'foo'
attribute to be replaced with the absolute URL of the current traversal
location.  'url.foo+bar' caused the attribute 'foo:bar' to be replaced.
'url' alone replaces the contents of the tag, and 'url.notag' replaces
the entire element with just the URL.  (The spelling for these latter
behaviors may get tweaked a bit.)  Testing this shook a few typos and other
bugs out of the woodwork.  Also, this gives an example of how to create
a DOMlet factory that isn't a class, but a function that decides what class
to create.

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.73 -r1.74 PEAK/setup.py
cvs rdiff -r1.70 -r1.71 PEAK/src/peak/peak.ini
cvs rdiff -r1.19 -r1.20 PEAK/src/peak/web/places.py
cvs rdiff -r1.9 -r1.10 PEAK/src/peak/web/resources.py
cvs rdiff -r1.12 -r1.13 PEAK/src/peak/web/templates.py
cvs rdiff -r0 -r1.1 PEAK/src/peak/web/tests/template2.pwt
cvs rdiff -r1.1 -r1.2 PEAK/src/peak/web/tests/test_resources.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