[Zope-CVS] CVS: Packages3/workflow/tests - test_service.py:1.3 workflowsetup.py:1.3
Ulrich Eck
ueck@net-labs.de
Wed, 19 Mar 2003 12:00:44 -0500
Update of /cvs-repository/Packages3/workflow/tests
In directory cvs.zope.org:/tmp/cvs-serv20767/tests
Modified Files:
test_service.py workflowsetup.py
Log Message:
checkpoint (updates for use-config/local-utility-branch changes)
(ATTENTION: this will not work until Jim has merged the local-utility-branch)
Updated everything to match the current configuration machinery
=== Packages3/workflow/tests/test_service.py 1.2 => 1.3 ===
--- Packages3/workflow/tests/test_service.py:1.2 Thu Feb 6 17:03:07 2003
+++ Packages3/workflow/tests/test_service.py Wed Mar 19 12:00:43 2003
@@ -25,6 +25,8 @@
from zope.app.traversing import traverse
from zope.app.container.zopecontainer import ZopeContainerAdapter
from zope.app.interfaces.annotation import IAttributeAnnotatable
+from zope.app.interfaces.services.configuration \
+ import IUseConfigurable
from zope.app.interfaces.services.configuration \
import Active, Unregistered, Registered
@@ -37,7 +39,7 @@
# define and create dummy ProcessDefinition (PD) for tests
class DummyProcessDefinition:
- __implements__ = IProcessDefinition, IAttributeAnnotatable
+ __implements__ = IProcessDefinition, IAttributeAnnotatable, IUseConfigurable
def __init__(self, n):
self.n = n
=== Packages3/workflow/tests/workflowsetup.py 1.2 => 1.3 ===
--- Packages3/workflow/tests/workflowsetup.py:1.2 Mon Feb 24 12:57:41 2003
+++ Packages3/workflow/tests/workflowsetup.py Wed Mar 19 12:00:43 2003
@@ -42,6 +42,9 @@
from zope.app.interfaces.annotation import IAnnotations
from zope.app.interfaces.dependable import IDependable
from zope.app.dependable import Dependable
+from zope.app.interfaces.services.configuration \
+ import IUseConfiguration, IUseConfigurable
+from zope.app.services.configuration import UseConfiguration
from zope.component.adapter import provideAdapter
from zope.app.interfaces.services.configuration \
@@ -69,7 +72,8 @@
provideAdapter(IAttributeAnnotatable,
IAnnotations, AttributeAnnotations)
provideAdapter(IAnnotatable, IDependable, Dependable)
-
+ provideAdapter(IUseConfigurable, IUseConfiguration, UseConfiguration)
+
# Set up a local workflow service
self.buildFolders()
self.rootFolder.setServiceManager(ServiceManager())