Jump to revision: | |
---|---|
Author: | pje |
Date: | Thu Sep 30 19:29:17 2004 UTC (19 years, 6 months ago) |
Log Message:
Added Zope 3-like "namespaces" to 'peak.web'. Path segments in a URL may be prefixed with '"++some_id++"' in order to invoke a corresponding namespace handler registered under '"peak.web.namespaces.some_id". Namespace handlers must implement 'web.INamespaceHandler', and they are supplied with the original path segment as well as the separated namespace and name. Also, as in Zope 3, '"@@foo"' is a shortcut for '"++view++foo"'. Builtin namespaces at this time include 'view', 'item', 'attr', 'skin', and 'resources'. 'skin' treats the rest of its path segment as a skin name, and sets the current skin, and 'resources' begins traversal to resources found in the current skin. The other namespaces are as described at: http://www.eby-sarna.com/pipermail/peak/2004-August/001712.html Note, however, that this doesn't include the change to default traversal described there, and there are a couple of other issues outstanding, like defining permissions for views, and fixing legacy uses of "@@" in the peak.web source. We also don't have any registration mechanisms for easy view declarations, or for setting up local "sites" or "sub-applications". Also, this refactoring may break existing uses of 'web.traverseAttr', which now has a completely different meaning and signature.
Changed paths:
Path | Action | Text Changes | Prop Changes | Diff to Previous |
---|---|---|---|---|
PEAK/CHANGES.txt | modified | X | (diff to previous) | |
PEAK/src/peak/peak.ini | modified | X | (diff to previous) | |
PEAK/src/peak/web/environ.py | modified | X | (diff to previous) | |
PEAK/src/peak/web/interfaces.py | modified | X | (diff to previous) | |
PEAK/src/peak/web/places.py | modified | X | (diff to previous) | |
PEAK/src/peak/web/publish.py | modified | X | (diff to previous) | |
PEAK/src/peak/web/resources.py | modified | X | (diff to previous) | |
PEAK/src/peak/web/tests/test_environ.py | modified | X | (diff to previous) |
cvs-admin@eby-sarna.com Powered by ViewCVS 1.0-dev |
ViewCVS and CVS Help |