[CMF-checkins] CVS: CMF/DCWorkflow - Transitions.py:1.8 States.py:1.7

Chris Withers chrisw@nipltd.com
Thu, 24 Oct 2002 11:05:20 -0400


Update of /cvs-repository/CMF/DCWorkflow
In directory cvs.zope.org:/tmp/cvs-serv25955

Modified Files:
	Transitions.py States.py 
Log Message:
Added descriptions to transitions and states.

=== CMF/DCWorkflow/Transitions.py 1.7 => 1.8 ===
--- CMF/DCWorkflow/Transitions.py:1.7	Thu Oct 17 15:31:00 2002
+++ CMF/DCWorkflow/Transitions.py	Thu Oct 24 11:04:50 2002
@@ -42,6 +42,7 @@
     security.declareObjectProtected(ManagePortal)
 
     title = ''
+    description = ''
     new_state_id = ''
     trigger_type = TRIGGER_USER_ACTION
     guard = None
@@ -107,7 +108,7 @@
                                      manage_tabs_message=manage_tabs_message,
                                      )
 
-    def setProperties(self, title, new_state_id,
+    def setProperties(self, title, description, new_state_id,
                       trigger_type=TRIGGER_USER_ACTION, script_name='',
                       after_script_name='',
                       actbox_name='', actbox_url='',
@@ -116,6 +117,7 @@
         '''
         '''
         self.title = str(title)
+        self.description = str(description)
         self.new_state_id = str(new_state_id)
         self.trigger_type = int(trigger_type)
         self.script_name = str(script_name)


=== CMF/DCWorkflow/States.py 1.6 => 1.7 ===
--- CMF/DCWorkflow/States.py:1.6	Thu Aug  1 15:05:14 2002
+++ CMF/DCWorkflow/States.py	Thu Oct 24 11:04:50 2002
@@ -42,6 +42,7 @@
         )
 
     title = ''
+    description = ''
     transitions = ()  # The ids of possible transitions.
     permission_roles = None
     var_values = None  # PersistentMapping if set.  Overrides transition exprs.
@@ -103,10 +104,11 @@
                                      manage_tabs_message=manage_tabs_message,
                                      )
 
-    def setProperties(self, title='', transitions=(), REQUEST=None):
+    def setProperties(self, title='', description='', transitions=(), REQUEST=None):
         '''
         '''
         self.title = str(title)
+        self.description = str(description)
         self.transitions = tuple(map(str, transitions))
         if REQUEST is not None:
             return self.manage_properties(REQUEST, 'Properties changed.')