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):
http://cvs.eby-sarna.com/PEAK/src/peak/web/environ.py.diff?r1=1.14&r2=1.15
http://cvs.eby-sarna.com/PEAK/src/peak/web/interfaces.py.diff?r1=1.41&r2=1.42
http://cvs.eby-sarna.com/PEAK/src/peak/web/places.py.diff?r1=1.35&r2=1.36
http://cvs.eby-sarna.com/PEAK/src/peak/web/publish.py.diff?r1=1.49&r2=1.50
http://cvs.eby-sarna.com/PEAK/src/peak/web/resources.py.diff?r1=1.37&r2=1.38
http://cvs.eby-sarna.com/PEAK/src/peak/web/skins.py.diff?r1=1.24&r2=1.25
http://cvs.eby-sarna.com/PEAK/src/peak/web/templates.py.diff?r1=1.28&r2=1.29
http://cvs.eby-sarna.com/PEAK/src/peak/web/tests/test_environ.py.diff?r1=1.11&r2=1.12
http://cvs.eby-sarna.com/PEAK/src/peak/web/tests/test_templates.py.diff?r1=1.16&r2=1.17
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