[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services/service -
__init__.py:1.6
Sidnei da Silva
cvs-admin at zope.org
Wed Oct 29 15:33:08 EST 2003
Update of /cvs-repository/Zope3/src/zope/app/browser/services/service
In directory cvs.zope.org:/tmp/cvs-serv24199/src/zope/app/browser/services/service
Modified Files:
__init__.py
Log Message:
Whitespace cleaning
=== Zope3/src/zope/app/browser/services/service/__init__.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/browser/services/service/__init__.py:1.5 Thu Oct 23 14:39:43 2003
+++ Zope3/src/zope/app/browser/services/service/__init__.py Wed Oct 29 15:33:08 2003
@@ -101,7 +101,7 @@
if not ILocalUtility.isImplementedBy(content):
raise TypeError("%s is not a local utility" % content)
return super(UtilityAdding, self).add(content)
-
+
class AddServiceRegistration(BrowserView):
"""A view on a service implementation, used by add_svc_config.py."""
@@ -350,12 +350,12 @@
... from zope.interface import directlyProvides
... directlyProvides(self, ISite)
-
+
>>> folder = PossibleSite()
>>> from zope.publisher.browser import TestRequest
>>> request = TestRequest()
-
+
Now we'll make out folder a site:
>>> MakeSite(folder, request).addSiteManager()
@@ -379,8 +379,8 @@
Traceback (most recent call last):
...
UserError: This is already a site
-
-
+
+
"""
if ISite.isImplementedBy(self.context):
raise zapi.UserError('This is already a site')
More information about the Zope3-Checkins
mailing list