[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - service.py:1.8 interfaces.py:NONE
Jim Fulton
jim@zope.com
Tue, 11 Mar 2003 11:11:47 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv10749/src/zope/app/interfaces/services
Modified Files:
service.py
Removed Files:
interfaces.py
Log Message:
Broke the module zope/app/interfaces/services/interfaces.py, into two
separate more-focussed modules:
zope/app/interfaces/services/adapter.py, and
zope/app/interfaces/services/view.py
and also moved some interfaces to:
zope/app/interfaces/services/service.py
and adjusted various dotted names to reflect the new locations.
=== Zope3/src/zope/app/interfaces/services/service.py 1.7 => 1.8 ===
--- Zope3/src/zope/app/interfaces/services/service.py:1.7 Mon Feb 3 12:29:07 2003
+++ Zope3/src/zope/app/interfaces/services/service.py Tue Mar 11 11:11:09 2003
@@ -25,8 +25,25 @@
from zope.app.security.permission import PermissionField
from zope.interface import Interface, Attribute
from zope.component.interfaces import IServiceService
-from zope.app.interfaces.services.configuration \
- import INamedComponentConfiguration, INameComponentConfigurable
+from zope.app.interfaces.services import configuration
+
+
+class ILocalService(configuration.IUseConfigurable):
+ """A local service isn't a local service if it doesn't implement this.
+
+ The contract of a local service includes collaboration with
+ services above it. A local service should also implement
+ IUseConfigurable (which implies that it is adaptable to
+ IUseConfiguration). Implementing ILocalService implies this.
+ """
+
+
+class ISimpleService(ILocalService, configuration.IAttributeUseConfigurable):
+ """Most local services should implement this instead of ILocalService.
+
+ It implies a specific way of implementing IUseConfigurable,
+ by subclassing IAttributeUseConfigurable.
+ """
class IComponentManager(Interface):
@@ -94,7 +111,7 @@
class IServiceManager(IServiceService, IComponentManager,
- INameComponentConfigurable):
+ configuration.INameComponentConfigurable):
"""Service Managers act as containers for Services.
If a Service Manager is asked for a service, it checks for those it
@@ -119,7 +136,7 @@
If the dotted name cannot be resolved, an ImportError is raised.
"""
-class IServiceConfiguration(INamedComponentConfiguration):
+class IServiceConfiguration(configuration.INamedComponentConfiguration):
"""Service Configuration
Service configurations are dependent on the components that they
=== Removed File Zope3/src/zope/app/interfaces/services/interfaces.py ===