[Checkins] SVN: zope.traversing/trunk/ Moved IBeforeTraverseEvent from zope.app.publication into this package, as we already deal with publication traversal.
Hanno Schlichting
hannosch at hannosch.eu
Tue Dec 15 14:37:19 EST 2009
Log message for revision 106558:
Moved IBeforeTraverseEvent from zope.app.publication into this package, as we already deal with publication traversal.
Changed:
U zope.traversing/trunk/CHANGES.txt
U zope.traversing/trunk/setup.py
U zope.traversing/trunk/src/zope/traversing/interfaces.py
-=-
Modified: zope.traversing/trunk/CHANGES.txt
===================================================================
--- zope.traversing/trunk/CHANGES.txt 2009-12-15 18:33:56 UTC (rev 106557)
+++ zope.traversing/trunk/CHANGES.txt 2009-12-15 19:37:19 UTC (rev 106558)
@@ -2,12 +2,12 @@
Changes
=======
-3.8.1 (unreleased)
+3.9.0 (unreleased)
------------------
-- Nothing changed yet.
+- Moved IBeforeTraverseEvent from zope.app.publication into this package,
+ as we already deal with publication traversal.
-
3.8.0 (2009-09-29)
------------------
Modified: zope.traversing/trunk/setup.py
===================================================================
--- zope.traversing/trunk/setup.py 2009-12-15 18:33:56 UTC (rev 106557)
+++ zope.traversing/trunk/setup.py 2009-12-15 19:37:19 UTC (rev 106558)
@@ -27,7 +27,7 @@
open('CHANGES.txt').read())
setup(name='zope.traversing',
- version = '3.8.1dev',
+ version = '3.9.0dev',
url='http://pypi.python.org/pypi/zope.traversing',
license='ZPL 2.1',
author='Zope Corporation and Contributors',
Modified: zope.traversing/trunk/src/zope/traversing/interfaces.py
===================================================================
--- zope.traversing/trunk/src/zope/traversing/interfaces.py 2009-12-15 18:33:56 UTC (rev 106557)
+++ zope.traversing/trunk/src/zope/traversing/interfaces.py 2009-12-15 19:37:19 UTC (rev 106558)
@@ -16,7 +16,10 @@
$Id$
"""
+from zope.interface import Attribute
from zope.interface import Interface
+from zope.interface import implements
+from zope.component.interfaces import IObjectEvent
# BBB: Re-import symbols to their old location.
from zope.location.interfaces import LocationError as TraversalError
@@ -161,10 +164,28 @@
Raises ValueError if a badly formed path is given.
"""
+
class IPathAdapter(Interface):
"""Marker interface for adapters to be used in paths
"""
+
class IEtcNamespace(Interface):
"""Marker for utility registrations in the ++etc++ namespace
"""
+
+
+class IBeforeTraverseEvent(IObjectEvent):
+ """An event which gets sent on publication traverse"""
+
+ request = Attribute("The current request")
+
+
+class BeforeTraverseEvent(object):
+ """An event which gets sent on publication traverse"""
+
+ implements(IBeforeTraverseEvent)
+
+ def __init__(self, ob, request):
+ self.object = ob
+ self.request = request
More information about the checkins
mailing list