[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/services - utility.py:1.3
Fred L. Drake, Jr.
fred@zope.com
Thu, 3 Apr 2003 17:06:04 -0500
Update of /cvs-repository/Zope3/src/zope/app/interfaces/services
In directory cvs.zope.org:/tmp/cvs-serv10877/app/interfaces/services
Modified Files:
utility.py
Log Message:
Added configuration user-interface for the local utility service.
=== Zope3/src/zope/app/interfaces/services/utility.py 1.2 => 1.3 ===
--- Zope3/src/zope/app/interfaces/services/utility.py:1.2 Fri Mar 21 16:02:19 2003
+++ Zope3/src/zope/app/interfaces/services/utility.py Thu Apr 3 17:05:33 2003
@@ -22,6 +22,7 @@
from zope.schema import BytesLine, TextLine
from zope.app.interfaces.services.configuration import IUseConfigurable
from zope.app.interfaces.services.configuration import ComponentPath
+from zope.component.interfaces import IUtilityService
class IUtilityConfiguration(IComponentConfiguration):
"""Utility configuration object.
@@ -64,3 +65,25 @@
IUseConfiguration can be used; otherwise, they must provide
another way to be adaptable to IUseConfiguration.
"""
+
+
+
+class ILocalUtilityService(IUtilityService):
+ """Local utility service interface.
+
+ Methods which must be implemented by a local utility service to
+ allow views to retrieve sufficient information from the service.
+ """
+
+ def getRegisteredMatching():
+ """The return value is an iterable object for which each item
+ is a three-element tuple:
+
+ - provided interface
+
+ - name
+
+ - configuration registry
+
+ One item is present for each registration.
+ """