[Zope3-checkins] CVS: Zope3/lib/python/Zope/App/Workflow - IWorkflowProcessDefinitionConfiguration.py:1.1.2.2 WorkflowProcessDefinitionConfiguration.py:1.1.2.2 WorkflowService.py:1.2.24.4

Florent Guillaume fg@nuxeo.com
Wed, 4 Dec 2002 06:04:49 -0500


Update of /cvs-repository/Zope3/lib/python/Zope/App/Workflow
In directory cvs.zope.org:/tmp/cvs-serv25077

Modified Files:
      Tag: sprintathon-wf-branch
	IWorkflowProcessDefinitionConfiguration.py 
	WorkflowProcessDefinitionConfiguration.py WorkflowService.py 
Log Message:
Use ProcessDefinition everywhere.

=== Zope3/lib/python/Zope/App/Workflow/IWorkflowProcessDefinitionConfiguration.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/lib/python/Zope/App/Workflow/IWorkflowProcessDefinitionConfiguration.py:1.1.2.1	Tue Dec  3 10:32:13 2002
+++ Zope3/lib/python/Zope/App/Workflow/IWorkflowProcessDefinitionConfiguration.py	Wed Dec  4 06:04:49 2002
@@ -27,5 +27,5 @@
 
     componentPath = Attribute("The physical path to the component")
 
-    def getDefinition():
+    def getProcessDefinition():
         """Return the definition."""


=== Zope3/lib/python/Zope/App/Workflow/WorkflowProcessDefinitionConfiguration.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/lib/python/Zope/App/Workflow/WorkflowProcessDefinitionConfiguration.py:1.1.2.1	Tue Dec  3 10:32:13 2002
+++ Zope3/lib/python/Zope/App/Workflow/WorkflowProcessDefinitionConfiguration.py	Wed Dec  4 06:04:49 2002
@@ -53,7 +53,7 @@
     # Implementation methods for interface
     # Zope.App.Workflow.IWorkflowProcessDefinitionConfiguration
 
-    def getDefinition(self):
+    def getProcessDefinition(self):
         definition = getattr(self, '_v_definition', None)
         if definition is not None:
             return definition
@@ -62,7 +62,7 @@
         self._v_definition = definition
         return definition
 
-    getDefinition = ContextMethod(getDefinition)
+    getProcessDefinition = ContextMethod(getProcessDefinition)
 
     ############################################################
     # IConfigurationSummary
@@ -90,7 +90,7 @@
     def manage_afterAdd(self, configuration, container):
         "See Zope.App.OFS.Container.IAddNotifiable"
         sm = getServiceManager(configuration)
-        definition = configuration.getDefinition()
+        definition = configuration.getProcessDefinition()
         dependents = getAdapter(definition, IDependable)
         objectpath = getPhysicalPathString(configuration)
         dependents.addDependent(objectpath)


=== Zope3/lib/python/Zope/App/Workflow/WorkflowService.py 1.2.24.3 => 1.2.24.4 ===
--- Zope3/lib/python/Zope/App/Workflow/WorkflowService.py:1.2.24.3	Wed Dec  4 05:42:24 2002
+++ Zope3/lib/python/Zope/App/Workflow/WorkflowService.py	Wed Dec  4 06:04:49 2002
@@ -49,14 +49,14 @@
             return service.getDefinition(name)
         raise ComponentLookupError
 
-    getDefinition = ContextMethod(getDefinition)
+    getProcessDefinition = ContextMethod(getProcessDefinition)
 
     def queryConfigurations(self, definition_name, default=None):
         registry = self.__definitions.get(definition_name, default)
         return ContextWrapper(registry, self)
 
     queryConfigurations = ContextMethod(queryConfigurations)
-        
+
     def createConfigurationsFor(self, configuration):
         return self.createConfigurations(configuration.definitionName)