Commit 3ebe5642 authored by Łukasz Nowak's avatar Łukasz Nowak

Use action, not state.

parent cea495a4
......@@ -65,13 +65,12 @@ hosting_kw = kw.copy()\n
\n
hosting_kw[\'default_destination_section_uid\'] = context.getUid()\n
\n
def getWorkflowDate(document, state):\n
def getWorkflowDate(document, action):\n
workflow_item_list = portal.portal_workflow.getInfoFor(ob=document, name=\'history\', wf_id=\'instance_slap_interface_workflow\')\n
for item in workflow_item_list:\n
if item.get(\'slap_state\') == state:\n
if item.get(\'action\') == action:\n
return item.get(\'time\')\n
raise ValueError(\'Document %s has no state %s\' % (document.getPath(), state))\n
\n
raise ValueError(\'Document %s has no action %s\' % (document.getPath(), action))\n
\n
subscription_service_relative_url=portal.portal_preferences.getPreferredInstanceSubscriptionResource()\n
common_add_kw = dict(\n
......
741
\ No newline at end of file
742
\ No newline at end of file
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