[Zope3-checkins] SVN: Zope3/trunk/src/zope/app/tests/setup.py setup.py placefullSetUp browserView for AbsoluteURL adapted to use IAbsoluteURL

robert rottermann robert at redcor.ch
Mon Oct 11 07:51:43 EDT 2004


Log message for revision 27965:
  setup.py placefullSetUp browserView for AbsoluteURL adapted to use IAbsoluteURL


Changed:
  U   Zope3/trunk/src/zope/app/tests/setup.py


-=-
Modified: Zope3/trunk/src/zope/app/tests/setup.py
===================================================================
--- Zope3/trunk/src/zope/app/tests/setup.py	2004-10-11 11:34:15 UTC (rev 27964)
+++ Zope3/trunk/src/zope/app/tests/setup.py	2004-10-11 11:51:43 UTC (rev 27965)
@@ -41,6 +41,7 @@
 
 #------------------------------------------------------------------------
 # Traversal
+from zope.app.traversing.browser.interfaces import IAbsoluteURL
 from zope.app.traversing.browser import SiteAbsoluteURL, AbsoluteURL
 from zope.app.container.traversal import ContainerTraversable
 from zope.app.container.interfaces import ISimpleReadContainer
@@ -70,6 +71,11 @@
     ztapi.browserView(None, "absolute_url", AbsoluteURL)
     ztapi.browserView(IContainmentRoot, "absolute_url", SiteAbsoluteURL)
 
+    ztapi.browserView(None, '', AbsoluteURL, providing=IAbsoluteURL)
+    ztapi.browserView(IContainmentRoot, '', SiteAbsoluteURL,
+                      providing=IAbsoluteURL)
+
+
 #------------------------------------------------------------------------
 # Use registration
 from zope.app.registration.interfaces import IAttributeRegisterable



More information about the Zope3-Checkins mailing list