[Zope3-checkins] CVS: Zope3/src/zope/app/schema/browser -
configure.zcml:1.6 traversal.py:1.3
Philipp von Weitershausen
philikon at philikon.de
Wed Mar 17 13:24:58 EST 2004
Update of /cvs-repository/Zope3/src/zope/app/schema/browser
In directory cvs.zope.org:/tmp/cvs-serv24200/app/schema/browser
Modified Files:
configure.zcml traversal.py
Log Message:
The traversing machinery now uses views providing an interface
(IPublishTraverse or subclassing interfaces) instead of views named
"_traverse".
=== Zope3/src/zope/app/schema/browser/configure.zcml 1.5 => 1.6 ===
--- Zope3/src/zope/app/schema/browser/configure.zcml:1.5 Sat Mar 13 19:15:19 2004
+++ Zope3/src/zope/app/schema/browser/configure.zcml Wed Mar 17 13:24:27 2004
@@ -92,12 +92,13 @@
<!-- Register a browser-specific traverser -->
- <page
- name="_traverse"
+ <zope:view
for="zope.app.schema.interfaces.IMutableSchema"
- class=".traversal.SchemaFieldTraverser"
- permission="zope.Public" />
-
+ type="zope.publisher.interfaces.browser.IBrowserRequest"
+ provides="zope.publisher.interfaces.browser.IBrowserPublisher"
+ factory=".traversal.SchemaFieldTraverser"
+ permission="zope.Public"
+ />
<zope:adapter
factory=".traversal.SchemaFieldTraversable"
=== Zope3/src/zope/app/schema/browser/traversal.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/schema/browser/traversal.py:1.2 Sat Mar 13 16:03:20 2004
+++ Zope3/src/zope/app/schema/browser/traversal.py Wed Mar 17 13:24:27 2004
@@ -15,7 +15,7 @@
"""
from zope.interface import implements
from zope.component import getDefaultViewName, queryView
-from zope.publisher.interfaces import IPublishTraverse
+from zope.publisher.interfaces.browser import IBrowserPublisher
from zope.app.schema.interfaces import IMutableSchema
from zope.exceptions import NotFoundError
@@ -27,8 +27,7 @@
_marker = object()
class SchemaFieldTraverser:
-
- implements(IPublishTraverse)
+ implements(IBrowserPublisher)
__used_for__ = IMutableSchema
def __init__(self, context, request):
More information about the Zope3-Checkins
mailing list