[Zope3-checkins] SVN: Zope3/branches/jim-adapter/src/zope/ Register
traversers where they are defined, not in zope.traversing.
Philipp von Weitershausen
philikon at philikon.de
Wed Apr 5 18:13:43 EDT 2006
Log message for revision 66585:
Register traversers where they are defined, not in zope.traversing.
This kill some more zope.app dependencies in zope.traversing.
Changed:
U Zope3/branches/jim-adapter/src/zope/app/container/configure.zcml
U Zope3/branches/jim-adapter/src/zope/app/publication/configure.zcml
U Zope3/branches/jim-adapter/src/zope/traversing/browser/configure.zcml
-=-
Modified: Zope3/branches/jim-adapter/src/zope/app/container/configure.zcml
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/container/configure.zcml 2006-04-05 22:10:54 UTC (rev 66584)
+++ Zope3/branches/jim-adapter/src/zope/app/container/configure.zcml 2006-04-05 22:13:42 UTC (rev 66585)
@@ -67,4 +67,22 @@
<allow interface=".constraints.IItemTypePrecondition" />
</class>
+ <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"
+ allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
+ />
+
+ <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"
+ allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
+ />
+
</configure>
Modified: Zope3/branches/jim-adapter/src/zope/app/publication/configure.zcml
===================================================================
--- Zope3/branches/jim-adapter/src/zope/app/publication/configure.zcml 2006-04-05 22:10:54 UTC (rev 66584)
+++ Zope3/branches/jim-adapter/src/zope/app/publication/configure.zcml 2006-04-05 22:13:42 UTC (rev 66585)
@@ -3,6 +3,21 @@
xmlns:browser="http://namespaces.zope.org/browser"
>
+ <view
+ for="zope.interface.Interface"
+ type="zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.publisher.interfaces.browser.IBrowserPublisher"
+ factory="zope.app.publication.traversers.SimpleComponentTraverser"
+ permission="zope.Public"
+ allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
+ />
+
+ <adapter
+ for="types.MethodType zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.publisher.interfaces.browser.IBrowserPublisher"
+ factory="zope.app.publication.traversers.NoTraverser"
+ />
+
<browser:view
for="zope.app.publication.interfaces.IFileContent"
provides="zope.publisher.interfaces.browser.IBrowserPublisher"
Modified: Zope3/branches/jim-adapter/src/zope/traversing/browser/configure.zcml
===================================================================
--- Zope3/branches/jim-adapter/src/zope/traversing/browser/configure.zcml 2006-04-05 22:10:54 UTC (rev 66584)
+++ Zope3/branches/jim-adapter/src/zope/traversing/browser/configure.zcml 2006-04-05 22:13:42 UTC (rev 66585)
@@ -3,39 +3,6 @@
xmlns:browser="http://namespaces.zope.org/browser">
<view
- for="zope.interface.Interface"
- type="zope.publisher.interfaces.browser.IBrowserRequest"
- provides="zope.publisher.interfaces.browser.IBrowserPublisher"
- factory="zope.app.publication.traversers.SimpleComponentTraverser"
- permission="zope.Public"
- allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
- />
-
- <adapter
- for="types.MethodType zope.publisher.interfaces.browser.IBrowserRequest"
- provides="zope.publisher.interfaces.browser.IBrowserPublisher"
- factory="zope.app.publication.traversers.NoTraverser"
- />
-
- <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"
- allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
- />
-
- <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"
- allowed_interface="zope.publisher.interfaces.browser.IBrowserPublisher"
- />
-
- <view
for="*"
name="absolute_url"
factory=".AbsoluteURL"
More information about the Zope3-Checkins
mailing list