E&S CVS Commit: PEAK - Misc. peak.web refactorings/cleanups: traversing to '/' with a

pje at eby-sarna.com pje at eby-sarna.com
Sat Oct 16 23:25:00 EDT 2004

Module Name:	PEAK
Committed By:	pje
Date:		Sun Oct 17 03:24:06 UTC 2004

Modified Files:
	PEAK/src/peak/web: environ.py interfaces.py places.py publish.py
	    resources.py skins.py templates.py
	PEAK/src/peak/web/tests: test_environ.py test_templates.py

Log Message:
Misc. peak.web refactorings/cleanups: traversing to '/' with a
TraversalPath (e.g. in PWT templates) traverses to the context object
itself, allowing you access to absoluteURL, relativeURL, environ, and many
other items.  Attribute traversal now pretends an attribute doesn't exist
if it has no security declaration, instead of raising NotAllowed.  This
makes it easier to e.g. bypass attributes with views of the same name.
'IWebTraversable.preTraverse()' has been renamed to 'beforeHTTP()', to help
clarify its limited role.  Removed the 'root' attribute from 'IPolicyInfo'
and friends, as it was no longer used by anything.  (Use the 'app'
attribute instead, if you were using it.)

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

To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 PEAK/src/peak/web/environ.py
cvs rdiff -r1.41 -r1.42 PEAK/src/peak/web/interfaces.py
cvs rdiff -r1.35 -r1.36 PEAK/src/peak/web/places.py
cvs rdiff -r1.49 -r1.50 PEAK/src/peak/web/publish.py
cvs rdiff -r1.37 -r1.38 PEAK/src/peak/web/resources.py
cvs rdiff -r1.24 -r1.25 PEAK/src/peak/web/skins.py
cvs rdiff -r1.28 -r1.29 PEAK/src/peak/web/templates.py
cvs rdiff -r1.11 -r1.12 PEAK/src/peak/web/tests/test_environ.py
cvs rdiff -r1.16 -r1.17 PEAK/src/peak/web/tests/test_templates.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