Commit 15a1d2a0 authored by Xiaowu Zhang's avatar Xiaowu Zhang

Base: add accessor for effective date of workflow history

parent eda73caf
......@@ -562,6 +562,20 @@ def initializePortalTypeDynamicWorkflowMethods(ptype_klass, portal_workflow):
ptype_klass.registerAccessor(method,
Permissions.AccessContentsInformation)
for transition_id in wf_transition_reference_list:
list_method_id = 'get%sEffectiveDateList' % UpperCase(transition_id)
if not hasattr(ptype_klass, list_method_id):
method = WorkflowHistoryAccessor.ListGetter(list_method_id, wf_id, transition_id, 'effective_time')
ptype_klass.registerAccessor(method,
Permissions.AccessContentsInformation)
method_id = 'get%sEffectiveDate' % UpperCase(transition_id)
if not hasattr(ptype_klass, method_id):
method = WorkflowHistoryAccessor.Getter(method_id, list_method_id)
ptype_klass.registerAccessor(method,
Permissions.AccessContentsInformation)
elif wf_type in ['InteractionWorkflowDefinition', 'Interaction Workflow']:
storage = interaction_workflow_dict
else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment