[Zope3-checkins] CVS: Zope3/src/zope/app/workflow/stateful - contentworkflow.py:1.12 xmlimportexport.py:1.10

Jim Fulton jim at zope.com
Fri Mar 5 17:09:56 EST 2004


Update of /cvs-repository/Zope3/src/zope/app/workflow/stateful
In directory cvs.zope.org:/tmp/cvs-serv15449/src/zope/app/workflow/stateful

Modified Files:
	contentworkflow.py xmlimportexport.py 
Log Message:
Renamed interface methods:

isImplementedByInstancesOf to implementedBy
  isImplementedBy            to providedBy


=== Zope3/src/zope/app/workflow/stateful/contentworkflow.py 1.11 => 1.12 ===
--- Zope3/src/zope/app/workflow/stateful/contentworkflow.py:1.11	Tue Mar  2 13:51:07 2004
+++ Zope3/src/zope/app/workflow/stateful/contentworkflow.py	Fri Mar  5 17:09:23 2004
@@ -50,7 +50,7 @@
 
         # check if it implements IProcessInstanceContainerAdaptable
         # This interface ensures that the object can store process instances. 
-        if not IProcessInstanceContainerAdaptable.isImplementedBy(obj):
+        if not IProcessInstanceContainerAdaptable.providedBy(obj):
             return
 
         pi_container = queryAdapter(obj, IProcessInstanceContainer)
@@ -60,7 +60,7 @@
             # Object can't have associated PIs.
             return
 
-        if IObjectCreatedEvent.isImplementedBy(event):
+        if IObjectCreatedEvent.providedBy(event):
             wfs = getService(self, Workflows)
 
             # here we will lookup the configured processdefinitions


=== Zope3/src/zope/app/workflow/stateful/xmlimportexport.py 1.9 => 1.10 ===
--- Zope3/src/zope/app/workflow/stateful/xmlimportexport.py:1.9	Mon Mar  1 10:02:55 2004
+++ Zope3/src/zope/app/workflow/stateful/xmlimportexport.py	Fri Mar  5 17:09:23 2004
@@ -149,8 +149,8 @@
     def canImport(self, context, data):
         checker = XMLFormatChecker()
         parse(data, checker)
-        return bool(IStatefulProcessDefinition.isImplementedBy(context)) \
-               and checker.isValid()
+        return (bool(IStatefulProcessDefinition.providedBy(context)) 
+                and checker.isValid())
 
     def doImport(self, context, data):
         # XXX Manually clean ProcessDefinition ??




More information about the Zope3-Checkins mailing list