[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/service -
__init__.py:1.7
Jim Fulton
cvs-admin at zope.org
Fri Nov 21 12:11:21 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/services/service
In directory cvs.zope.org:/tmp/cvs-serv31475/src/zope/app/browser/services/service
Modified Files:
__init__.py
Log Message:
Made the test site a containment root.
=== Zope3/src/zope/app/browser/services/service/__init__.py 1.6 => 1.7 ===
--- Zope3/src/zope/app/browser/services/service/__init__.py:1.6 Wed Oct 29 15:33:08 2003
+++ Zope3/src/zope/app/browser/services/service/__init__.py Fri Nov 21 12:11:21 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 setSiteManager(self, sm):
... from zope.interface import directlyProvides
... directlyProvides(self, ISite)
@@ -355,8 +359,8 @@
>>> 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