[Zope3-checkins] CVS: Zope3/src/zope/app/browser/services - service.py:1.6.2.5
Guido van Rossum
guido@python.org
Mon, 3 Mar 2003 13:28:51 -0500
Update of /cvs-repository/Zope3/src/zope/app/browser/services
In directory cvs.zope.org:/tmp/cvs-serv22756/src/zope/app/browser/services
Modified Files:
Tag: use-config-branch
service.py
Log Message:
Get rid of IService. Instead, add ILocalService, which only applies
(as the name implies) to local services. Fewer files touched.
=== Zope3/src/zope/app/browser/services/service.py 1.6.2.4 => 1.6.2.5 ===
--- Zope3/src/zope/app/browser/services/service.py:1.6.2.4 Mon Mar 3 12:04:40 2003
+++ Zope3/src/zope/app/browser/services/service.py Mon Mar 3 13:28:16 2003
@@ -26,7 +26,7 @@
from zope.app.interfaces.services.configuration import IConfiguration
from zope.app.form.utility import setUpWidgets, getWidgetsDataForContent
from zope.app.traversing import traverse, getPhysicalPathString
-from zope.component.interfaces import IService
+from zope.app.interfaces.services.interfaces import ILocalService
__metaclass__ = type
@@ -57,7 +57,7 @@
# As a side effect, self.added_object is set by add() above.
ContextSuper(ComponentAdding, self).action(type_name, id)
- if not IService.isImplementedBy(self.added_object):
+ if not ILocalService.isImplementedBy(self.added_object):
return # It's not a service
# Collect all defined services interfaces that it implements.