Back to index

plone3  3.1.7
Public Member Functions | Public Attributes | Static Public Attributes | Static Private Attributes
DCWorkflow.Variables.VariableDefinition Class Reference
Inheritance diagram for DCWorkflow.Variables.VariableDefinition:
Inheritance graph
[legend]
Collaboration diagram for DCWorkflow.Variables.VariableDefinition:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def getDefaultExprText
def getInfoGuard
def getInfoGuardSummary
def manage_properties
def setProperties

Public Attributes

 id
 description
 default_value
 for_catalog
 for_status
 update_always

Static Public Attributes

string meta_type = 'Workflow Variable'
tuple security = ClassSecurityInfo()
string description = ''
int for_catalog = 1
int for_status = 1
string default_value = ''
 default_expr = None
 info_guard = None
int update_always = 1
tuple manage_options

Static Private Attributes

tuple _properties_form = DTMLFile('variable_properties', _dtmldir)

Detailed Description

Variable definition

Definition at line 32 of file Variables.py.


Constructor & Destructor Documentation

Definition at line 52 of file Variables.py.

00052 
00053     def __init__(self, id):
00054         self.id = id


Member Function Documentation

Definition at line 55 of file Variables.py.

00055 
00056     def getDefaultExprText(self):
00057         if not self.default_expr:
00058             return ''
00059         else:
00060             return self.default_expr.text

Definition at line 61 of file Variables.py.

00061 
00062     def getInfoGuard(self):
00063         if self.info_guard is not None:
00064             return self.info_guard
00065         else:
00066             return Guard().__of__(self)  # Create a temporary guard.

Definition at line 67 of file Variables.py.

00067 
00068     def getInfoGuardSummary(self):
00069         res = None
00070         if self.info_guard is not None:
00071             res = self.info_guard.getSummary()
00072         return res

def DCWorkflow.Variables.VariableDefinition.manage_properties (   self,
  REQUEST,
  manage_tabs_message = None 
)

Definition at line 75 of file Variables.py.

00075 
00076     def manage_properties(self, REQUEST, manage_tabs_message=None):
00077         '''
00078         '''
00079         return self._properties_form(REQUEST,
00080                                      management_view='Properties',
00081                                      manage_tabs_message=manage_tabs_message,
00082                                      )

Here is the call graph for this function:

def DCWorkflow.Variables.VariableDefinition.setProperties (   self,
  description,
  default_value = '',
  default_expr = '',
  for_catalog = 0,
  for_status = 0,
  update_always = 0,
  props = None,
  REQUEST = None 
)

Definition at line 87 of file Variables.py.

00087 
00088                       props=None, REQUEST=None):
00089         '''
00090         '''
00091         self.description = str(description)
00092         self.default_value = str(default_value)
00093         if default_expr:
00094             self.default_expr = Expression(default_expr)
00095         else:
00096             self.default_expr = None
00097 
00098         g = Guard()
00099         if g.changeFromProperties(props or REQUEST):
00100             self.info_guard = g
00101         else:
00102             self.info_guard = None
00103         self.for_catalog = bool(for_catalog)
00104         self.for_status = bool(for_status)
00105         self.update_always = bool(update_always)
00106         if REQUEST is not None:
00107             return self.manage_properties(REQUEST, 'Properties changed.')
00108 
00109 InitializeClass(VariableDefinition)
00110 

Here is the caller graph for this function:


Member Data Documentation

tuple DCWorkflow.Variables.VariableDefinition._properties_form = DTMLFile('variable_properties', _dtmldir) [static, private]

Definition at line 73 of file Variables.py.

Definition at line 44 of file Variables.py.

Definition at line 43 of file Variables.py.

Definition at line 91 of file Variables.py.

Definition at line 40 of file Variables.py.

Definition at line 90 of file Variables.py.

Definition at line 41 of file Variables.py.

Definition at line 102 of file Variables.py.

Definition at line 42 of file Variables.py.

Definition at line 103 of file Variables.py.

Definition at line 53 of file Variables.py.

Definition at line 45 of file Variables.py.

Initial value:
(
        {'label': 'Properties', 'action': 'manage_properties'},
        )

Definition at line 48 of file Variables.py.

string DCWorkflow.Variables.VariableDefinition.meta_type = 'Workflow Variable' [static]

Definition at line 35 of file Variables.py.

tuple DCWorkflow.Variables.VariableDefinition.security = ClassSecurityInfo() [static]

Definition at line 37 of file Variables.py.

Definition at line 46 of file Variables.py.

Definition at line 104 of file Variables.py.


The documentation for this class was generated from the following file: