[CMF-checkins] CVS: CMF/DCWorkflow - Scripts.py:1.4 States.py:1.10 Transitions.py:1.10 Variables.py:1.7 Worklists.py:1.9

Sidnei da Silva sidnei at x3ng.com.br
Fri Dec 26 08:05:24 EST 2003


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

Modified Files:
	Scripts.py States.py Transitions.py Variables.py Worklists.py 
Log Message:
Add docstrings, some whitespace cleanup


=== CMF/DCWorkflow/Scripts.py 1.3 => 1.4 ===
--- CMF/DCWorkflow/Scripts.py:1.3	Thu Aug  1 15:05:14 2002
+++ CMF/DCWorkflow/Scripts.py	Fri Dec 26 08:05:22 2003
@@ -1,14 +1,14 @@
 ##############################################################################
 #
 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE
-# 
+#
 ##############################################################################
 """ Scripts in a web-configurable workflow.
 
@@ -25,6 +25,7 @@
 
 
 class Scripts (ContainerTab):
+    """A container for workflow scripts"""
 
     meta_type = 'Workflow Scripts'
 


=== CMF/DCWorkflow/States.py 1.9 => 1.10 ===
--- CMF/DCWorkflow/States.py:1.9	Tue Jun 24 10:01:56 2003
+++ CMF/DCWorkflow/States.py	Fri Dec 26 08:05:22 2003
@@ -1,14 +1,14 @@
 ##############################################################################
 #
 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE
-# 
+#
 ##############################################################################
 """ States in a web-configurable workflow.
 
@@ -33,6 +33,8 @@
 
 
 class StateDefinition (SimpleItem):
+    """State definition"""
+
     meta_type = 'Workflow State'
 
     manage_options = (
@@ -128,7 +130,7 @@
             return []
         else:
             return vv.items()
-    
+
     def getWorkflowVariables(self):
         """Get all variables that are available from the workflow and
         not handled yet.
@@ -146,19 +148,19 @@
         """Add a WorkflowVariable to State."""
         if self.var_values is None:
             self.var_values = PersistentMapping()
-        
+
         self.var_values[id] = value
-        
+
         if REQUEST is not None:
             return self.manage_variables(REQUEST, 'Variable added.')
-    
+
     def deleteVariables(self,ids=[],REQUEST=None):
         """Delete a WorkflowVariable from State."""
         vv = self.var_values
         for id in ids:
             if vv.has_key(id):
                 del vv[id]
-                
+
         if REQUEST is not None:
             return self.manage_variables(REQUEST, 'Variables deleted.')
 
@@ -166,9 +168,9 @@
         """Set values for Variables set by this State."""
         if self.var_values is None:
             self.var_values = PersistentMapping()
- 
+
         vv = self.var_values
- 
+
         if REQUEST is not None:
             for id in vv.keys():
                 fname = 'varval_%s' % id
@@ -218,6 +220,7 @@
 
 
 class States (ContainerTab):
+    """A container for state definitions"""
 
     meta_type = 'Workflow States'
 


=== CMF/DCWorkflow/Transitions.py 1.9 => 1.10 ===
--- CMF/DCWorkflow/Transitions.py:1.9	Thu Nov  7 06:25:26 2002
+++ CMF/DCWorkflow/Transitions.py	Fri Dec 26 08:05:22 2003
@@ -1,14 +1,14 @@
 ##############################################################################
 #
 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE
-# 
+#
 ##############################################################################
 """ Transitions in a web-configurable workflow.
 
@@ -36,6 +36,8 @@
 
 
 class TransitionDefinition (SimpleItem):
+    """Transition definition"""
+
     meta_type = 'Workflow Transition'
 
     security = ClassSecurityInfo()
@@ -154,7 +156,7 @@
             for key in ve.keys():
                 ret.append((key,self.getVarExprText(key)))
             return ret
-    
+
     def getWorkflowVariables(self):
         ''' get all variables that are available form
             workflow and not handled yet.
@@ -174,15 +176,15 @@
         '''
         if self.var_exprs is None:
             self.var_exprs = PersistentMapping()
-        
+
         expr = None
         if text:
           expr = Expression(str(text))
         self.var_exprs[id] = expr
-        
+
         if REQUEST is not None:
             return self.manage_variables(REQUEST, 'Variable added.')
-    
+
     def deleteVariables(self,ids=[],REQUEST=None):
         ''' delete a WorkflowVariable from State
         '''
@@ -190,7 +192,7 @@
         for id in ids:
             if ve.has_key(id):
                 del ve[id]
-                
+
         if REQUEST is not None:
             return self.manage_variables(REQUEST, 'Variables deleted.')
 
@@ -199,9 +201,9 @@
         '''
         if self.var_exprs is None:
             self.var_exprs = PersistentMapping()
- 
+
         ve = self.var_exprs
- 
+
         if REQUEST is not None:
             for id in ve.keys():
                 fname = 'varexpr_%s' % id
@@ -218,6 +220,7 @@
 
 
 class Transitions (ContainerTab):
+    """A container for transition definitions"""
 
     meta_type = 'Workflow Transitions'
 


=== CMF/DCWorkflow/Variables.py 1.6 => 1.7 ===
--- CMF/DCWorkflow/Variables.py:1.6	Thu Oct 17 15:31:00 2002
+++ CMF/DCWorkflow/Variables.py	Fri Dec 26 08:05:22 2003
@@ -1,14 +1,14 @@
 ##############################################################################
 #
 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE
-# 
+#
 ##############################################################################
 """ Variables in a web-configurable workflow.
 
@@ -32,6 +32,8 @@
 
 
 class VariableDefinition (SimpleItem):
+    """Variable definition"""
+
     meta_type = 'Workflow Variable'
 
     security = ClassSecurityInfo()
@@ -93,7 +95,7 @@
             self.default_expr = Expression(default_expr)
         else:
             self.default_expr = None
-            
+
         g = Guard()
         if g.changeFromProperties(props or REQUEST):
             self.info_guard = g
@@ -109,6 +111,7 @@
 
 
 class Variables (ContainerTab):
+    """A container for variable definitions"""
 
     meta_type = 'Workflow Variables'
 


=== CMF/DCWorkflow/Worklists.py 1.8 => 1.9 ===
--- CMF/DCWorkflow/Worklists.py:1.8	Fri Oct 25 11:49:47 2002
+++ CMF/DCWorkflow/Worklists.py	Fri Dec 26 08:05:22 2003
@@ -30,6 +30,8 @@
 from types import TupleType
 
 class WorklistDefinition (SimpleItem):
+    """Worklist definiton"""
+
     meta_type = 'Worklist'
 
     security = ClassSecurityInfo()
@@ -139,6 +141,7 @@
 
 
 class Worklists (ContainerTab):
+    """A container for worklist definitions"""
 
     meta_type = 'Worklists'
 




More information about the CMF-checkins mailing list