[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/service - __init__.py:1.3.6.1

Jim Fulton cvs-admin at zope.org
Tue Nov 11 12:28:22 EST 2003


Update of /cvs-repository/Zope3/src/zope/app/browser/services/service
In directory cvs.zope.org:/tmp/cvs-serv28715/src/zope/app/browser/services/service

Modified Files:
      Tag: adaptergeddon-branch
	__init__.py 
Log Message:
Changed local site managers (aka service managers) to have next and
subSites attributes.  Now local service managers are linked up to make
it easier to navigate related sites.


=== Zope3/src/zope/app/browser/services/service/__init__.py 1.3 => 1.3.6.1 ===
--- Zope3/src/zope/app/browser/services/service/__init__.py:1.3	Wed Sep 24 16:43:10 2003
+++ Zope3/src/zope/app/browser/services/service/__init__.py	Tue Nov 11 12:27:51 2003
@@ -345,7 +345,11 @@
 
         XXX we should also initialize some user-selected services.
 
+        >>> from zope.app.interfaces.traversing import IContainmentRoot
+        >>> from zope.interface import implements
+
         >>> class PossibleSite:
+        ...     implements(IContainmentRoot)
         ...     def setSite(self, sm):
         ...         from zope.interface import directlyProvides
         ...         directlyProvides(self, ISite)
@@ -356,7 +360,7 @@
         >>> from zope.publisher.browser import TestRequest
         >>> request = TestRequest()
         
-        Now we'll make out folder a site:
+        Now we'll make our folder a site:
 
         >>> MakeSite(folder, request).addSiteManager()
 




More information about the Zope3-Checkins mailing list