diff options
author | Jim Fulton <jim@zope.com> | 2004-08-10 19:55:52 +0000 |
---|---|---|
committer | Jim Fulton <jim@zope.com> | 2004-08-10 19:55:52 +0000 |
commit | cea89f7a8275ba4bb541d13a89c1cf4b010a93f9 (patch) | |
tree | 7eed2cb2f3ac052830cb18197cfd631d0c43493d | |
download | zope-traversing-monolithic-zope3-zope-app-jim-default-traversal.tar.gz |
Make SimpleComponentTraverser the default traverser formonolithic-zope3-zope-app-jim-default-traversal
all objects, not just those that implement something. This was an
attempt to fix a collector item, but it turned out to have nothing to
do with it. This is a big enough change that I don't want to
introduce it until X3.0 final is out.
We'll stick this off on this branch for now.
-rw-r--r-- | browser/configure.zcml | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/browser/configure.zcml b/browser/configure.zcml new file mode 100644 index 0000000..207994c --- /dev/null +++ b/browser/configure.zcml @@ -0,0 +1,87 @@ +<configure + xmlns="http://namespaces.zope.org/zope" + xmlns:browser="http://namespaces.zope.org/browser"> + + <view + for="*" + type="zope.publisher.interfaces.browser.IBrowserRequest" + provides="zope.publisher.interfaces.browser.IBrowserPublisher" + factory="zope.app.publication.traversers.SimpleComponentTraverser" + permission="zope.Public" + /> + + <view + for="types.MethodType" + type="zope.publisher.interfaces.browser.IBrowserRequest" + provides="zope.publisher.interfaces.browser.IBrowserPublisher" + factory="zope.app.publication.traversers.MethodTraverser" + permission="zope.Public" + /> + + <view + for="zope.app.container.interfaces.IItemContainer" + type="zope.publisher.interfaces.browser.IBrowserRequest" + provides="zope.publisher.interfaces.browser.IBrowserPublisher" + factory="zope.app.container.traversal.ItemTraverser" + permission="zope.Public" + /> + + <view + for="zope.app.container.interfaces.ISimpleReadContainer" + type="zope.publisher.interfaces.browser.IBrowserRequest" + provides="zope.publisher.interfaces.browser.IBrowserPublisher" + factory="zope.app.container.traversal.ItemTraverser" + permission="zope.Public" + /> + + <view + for="*" + name="absolute_url" + factory=".AbsoluteURL" + type="zope.publisher.interfaces.http.IHTTPRequest" + permission="zope.Public" + allowed_interface=".interfaces.IAbsoluteURL" + /> + + <view + for="*" + factory=".AbsoluteURL" + type="zope.publisher.interfaces.http.IHTTPRequest" + permission="zope.Public" + provides=".interfaces.IAbsoluteURL" + /> + + <view + for="zope.app.traversing.interfaces.IContainmentRoot" + name="absolute_url" + factory=".SiteAbsoluteURL" + type="zope.publisher.interfaces.http.IHTTPRequest" + permission="zope.Public" + allowed_interface=".interfaces.IAbsoluteURL" + /> + + <view + for="zope.app.traversing.interfaces.IContainmentRoot" + factory=".SiteAbsoluteURL" + type="zope.publisher.interfaces.http.IHTTPRequest" + permission="zope.Public" + provides=".interfaces.IAbsoluteURL" + /> + + <browser:page + for="*" + name="absolute_url" + class=".AbsoluteURL" + permission="zope.Public" + allowed_interface=".interfaces.IAbsoluteURL" + /> + + <browser:page + for="zope.app.traversing.interfaces.IContainmentRoot" + name="absolute_url" + class=".SiteAbsoluteURL" + permission="zope.Public" + allowed_interface=".interfaces.IAbsoluteURL" + /> + +</configure> |