[Zope3-checkins] CVS: Zope3/src/zope/app/services - errorr.py:1.6.2.1 hub.py:1.4.6.2
Guido van Rossum
guido@python.org
Wed, 26 Feb 2003 17:14:44 -0500
Update of /cvs-repository/Zope3/src/zope/app/services
In directory cvs.zope.org:/tmp/cvs-serv6349/src/zope/app/services
Modified Files:
Tag: use-config-branch
errorr.py hub.py
Log Message:
Add ISimpleService; test_startupdirectives passes again.
=== Zope3/src/zope/app/services/errorr.py 1.6 => 1.6.2.1 ===
--- Zope3/src/zope/app/services/errorr.py:1.6 Tue Feb 11 10:59:56 2003
+++ Zope3/src/zope/app/services/errorr.py Wed Feb 26 17:14:13 2003
@@ -25,8 +25,9 @@
import logging
from zope.exceptions.exceptionformatter import format_exception
from zope.proxy.context import ContextMethod
-from zope.app.interfaces.services.error \
- import IErrorReportingService
+from zope.app.interfaces.services.error import IErrorReportingService
+from zope.app.interfaces.services.interfaces import ISimpleService
+
#Restrict the rate at which errors are sent to the Event Log
_rate_restrict_pool = {}
@@ -48,7 +49,7 @@
class ErrorReportingService(Persistent):
"""Error Reporting Service
"""
- __implements__ = IErrorReportingService
+ __implements__ = IErrorReportingService, ISimpleService
keep_entries = 20
copy_to_zlog = 0
=== Zope3/src/zope/app/services/hub.py 1.4.6.1 => 1.4.6.2 ===
--- Zope3/src/zope/app/services/hub.py:1.4.6.1 Wed Feb 26 16:43:41 2003
+++ Zope3/src/zope/app/services/hub.py Wed Feb 26 17:14:13 2003
@@ -46,6 +46,7 @@
from zope.app.interfaces.services.hub import IObjectMovedHubEvent
from zope.app.interfaces.services.hub import IObjectRemovedHubEvent
from zope.app.interfaces.traversing import ITraverser
+from zope.app.interfaces.services.interfaces import ISimpleService
class HubEvent:
"""Convenient mix-in for HubEvents"""
@@ -175,6 +176,7 @@
__implements__ = (
IObjectHub,
+ ISimpleService,
IAttributeUseConfigurable,
ServiceSubscriberEventChannel.__implements__)