[Zope3-checkins] CVS: Zope3/src/zope/app/traversing/browser - __init__.py:1.2

Philipp von Weitershausen philikon at philikon.de
Thu Mar 18 06:15:35 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/traversing/browser
In directory cvs.zope.org:/tmp/cvs-serv23434

Modified Files:
	__init__.py 
Log Message:
Let absolute_url views implement IAbsoluteURL


=== Zope3/src/zope/app/traversing/browser/__init__.py 1.1 => 1.2 ===
--- Zope3/src/zope/app/traversing/browser/__init__.py:1.1	Sat Mar 13 22:44:08 2004
+++ Zope3/src/zope/app/traversing/browser/__init__.py	Thu Mar 18 06:15:34 2004
@@ -15,12 +15,13 @@
 
 $Id$
 """
-
-from zope.app import zapi
+from zope.interface import implements
 from zope.publisher.browser import BrowserView
 from zope.proxy import sameProxiedObjects
 
+from zope.app import zapi
 from zope.app.i18n import ZopeMessageIDFactory as _
+from zope.app.traversing.browser.interfaces import IAbsoluteURL
 
 _insufficientContext = _("There isn't enough context to get URL information. "
                        "This is probably due to a bug in setting up location "
@@ -28,6 +29,7 @@
 
 
 class AbsoluteURL(BrowserView):
+    implements(IAbsoluteURL)
 
     def __str__(self):
         context = self.context
@@ -82,6 +84,7 @@
         return base
 
 class SiteAbsoluteURL(BrowserView):
+    implements(IAbsoluteURL)
 
     def __str__(self):
         context = self.context




More information about the Zope3-Checkins mailing list