Commit 00793fb9 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_interface_post: redisign workflow and hooks

parent f521d689
# Script called whenever an interface post becomes exportable.
# It just calls in activity a script in which all the action happens.
# The main purpose of adding this script as overhead is to allow easy
# customization of the export behavior.
# Ie: sending mode/interface depends of the portal type. Or project wants
# to send it by bunches using alarm. Or ...
# Priority 2 is just enough to be executed after the immediateReindexObject
tag="InterfacePostWorkflow_afterAllowExport:%s" % context.getReference()
context.activate(tag=tag).InterfacePost_exportByActivity()
from Products.ZSQLCatalog.SQLCatalog import SimpleQuery
post_export_method = context.getTypeBasedMethod('export')
if post_export_method is not None:
return post_export_method()
# Internet Message Post is by default directly sent through MailHost.
# If a different behavior is needed, this script can be overriden.
context.export()
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>InterfacePost_afterAllowExport</string> </value>
<value> <string>InternetMessagePost_afterPrepareExport</string> </value>
</item>
</dictionary>
</pickle>
......
if context.InternetMessagePost_ingest():
getattr(context, 'import')() # "context.import()" is considered a syntax error...
else:
context.failImport()
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>InterfacePost_exportByActivity</string> </value>
<value> <string>InternetMessagePost_afterPrepareImport</string> </value>
</item>
</dictionary>
</pickle>
......
# Export is done before sending to MailHost, as MailHost isn't transactional
# and if the workflow method fails, or if the object isn't in the correct
# workflow state, we may send several times the email.
if context.getSimulationState() == 'exportable':
context.export()
else:
raise ValueError('Object cannot be exported as its workflow state is : %s' % context.getSimulationStateTitle())
context.getPortalObject().MailHost.send(context.getData())
tag = "afterExport:%s" % state_change['object'].getReference()
method = state_change['object'].getTypeBasedMethod('export')
if method is not None:
getattr(
state_change['object'].activate(tag=tag, activity='SQLQueue'), method.id)()
......@@ -54,7 +54,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>afterAllowExport</string> </value>
<value> <string>afterExport</string> </value>
</item>
</dictionary>
</pickle>
......
tag = "afterPrepareExport:%s" % state_change['object'].getReference()
method = state_change['object'].getTypeBasedMethod('afterPrepareExport')
if method is not None:
getattr(
state_change['object'].activate(tag=tag, activity='SQLQueue'), method.id)()
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>afterPrepareExport</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
tag = "afterPrepareImport:%s" % state_change['object'].getReference()
method = state_change['object'].getTypeBasedMethod('afterPrepareImport')
if method is not None:
getattr(
state_change['object'].activate(tag=tag, activity='SQLQueue'), method.id)()
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>Script_magic</string> </key>
<value> <int>3</int> </value>
</item>
<item>
<key> <string>_bind_names</string> </key>
<value>
<object>
<klass>
<global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
</klass>
<tuple/>
<state>
<dictionary>
<item>
<key> <string>_asgns</string> </key>
<value>
<dictionary>
<item>
<key> <string>name_container</string> </key>
<value> <string>container</string> </value>
</item>
<item>
<key> <string>name_context</string> </key>
<value> <string>context</string> </value>
</item>
<item>
<key> <string>name_m_self</string> </key>
<value> <string>script</string> </value>
</item>
<item>
<key> <string>name_subpath</string> </key>
<value> <string>traverse_subpath</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</state>
</object>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>state_change</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>afterPrepareImport</string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -8,15 +8,15 @@
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string>Document has been exported, and the destination responded with an acknowledgment of reception</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>acknowledged</string> </value>
<value> <string>archived</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Acknowledged</string> </value>
<value> <string>Archived</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
......
......@@ -22,10 +22,12 @@
<key> <string>transitions</string> </key>
<value>
<tuple>
<string>allow_export</string>
<string>allow_export_action</string>
<string>disallow_export</string>
<string>disallow_export_action</string>
<string>archive</string>
<string>archive_action</string>
<string>prepare_export</string>
<string>prepare_export_action</string>
<string>prepare_import</string>
<string>prepare_import_action</string>
</tuple>
</value>
</item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="StateDefinition" module="Products.DCWorkflow.States"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>export_acknowledged</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Export Acknowledged</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -22,10 +22,10 @@
<key> <string>transitions</string> </key>
<value>
<tuple>
<string>allow_export</string>
<string>allow_export_action</string>
<string>disallow_export</string>
<string>disallow_export_action</string>
<string>archive</string>
<string>archive_action</string>
<string>prepare_export</string>
<string>prepare_export_action</string>
</tuple>
</value>
</item>
......
......@@ -8,24 +8,26 @@
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string>The document is ready to be exported</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>exportable</string> </value>
<value> <string>export_prepared</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Exportable</string> </value>
<value> <string>Export Prepared</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple>
<string>disallow_export</string>
<string>disallow_export_action</string>
<string>archive</string>
<string>archive_action</string>
<string>export</string>
<string>export_action</string>
<string>fail_export</string>
<string>fail_export_action</string>
</tuple>
</value>
</item>
......
......@@ -22,10 +22,8 @@
<key> <string>transitions</string> </key>
<value>
<tuple>
<string>acknowledge</string>
<string>acknowledge_action</string>
<string>fail_export</string>
<string>fail_export_action</string>
<string>acknowledge_export</string>
<string>acknowledge_export_action</string>
</tuple>
</value>
</item>
......
......@@ -8,22 +8,24 @@
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string>The document shouldn\'t be exported, or has been decided (by user or ERP5) to not be exported</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>unexportable</string> </value>
<value> <string>import_failed</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Unexportable</string> </value>
<value> <string>Import Failed</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple>
<string>allow_export</string>
<string>allow_export_action</string>
<string>archive</string>
<string>archive_action</string>
<string>prepare_import</string>
<string>prepare_import_action</string>
</tuple>
</value>
</item>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="StateDefinition" module="Products.DCWorkflow.States"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>import_prepared</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Import Prepared</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple>
<string>archive</string>
<string>archive_action</string>
<string>fail_import</string>
<string>fail_import_action</string>
<string>import</string>
<string>import_action</string>
</tuple>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="StateDefinition" module="Products.DCWorkflow.States"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>imported</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Imported</string> </value>
</item>
<item>
<key> <string>transitions</string> </key>
<value>
<tuple/>
</value>
</item>
<item>
<key> <string>type_list</string> </key>
<value>
<tuple/>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>acknowledge_export</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string>export_acknowledged</string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Acknowledge Export</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Modify portal content</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -20,11 +20,11 @@
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=acknowledge_action</string> </value>
<value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=acknowledge_export_action</string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>acknowledge</string> </value>
<value> <string>acknowledge_export</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -38,7 +38,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>acknowledge_action</string> </value>
<value> <string>acknowledge_export_action</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Acknowledge Action</string> </value>
<value> <string>Acknowledge Export Action</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
......
......@@ -38,11 +38,11 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>acknowledge</string> </value>
<value> <string>archive</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string>acknowledged</string> </value>
<value> <string>archived</string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Acknowledge</string> </value>
<value> <string>Archive</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
......
......@@ -16,15 +16,15 @@
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string>Disallow Export</string> </value>
<value> <string>Archive</string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=disallow_export_action</string> </value>
<value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=archive_action</string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>disallow_export</string> </value>
<value> <string>archive</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -38,7 +38,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>disallow_export_action</string> </value>
<value> <string>archive_action</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Disallow Export Action</string> </value>
<value> <string>Archive Action</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
......
......@@ -24,7 +24,7 @@
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string></string> </value>
<value> <string>afterExport</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......
......@@ -38,11 +38,11 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>disallow_export</string> </value>
<value> <string>fail_import</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string>unexportable</string> </value>
<value> <string>import_failed</string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Disallow Export</string> </value>
<value> <string>Fail Import</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string>Set Import failed</string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=fail_import_action</string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>fail_import</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>fail_import_action</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Fail Import Action</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Modify portal content</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -24,7 +24,7 @@
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>afterAllowExport</string> </value>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -38,11 +38,11 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>allow_export</string> </value>
<value> <string>import</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string>exportable</string> </value>
<value> <string>imported</string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Allow Export</string> </value>
<value> <string>Import</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string>Set Imported</string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=import_action</string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>import</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>import_action</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Import Action</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Modify portal content</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>afterPrepareExport</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>prepare_export</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string>export_prepared</string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Prepare Export</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Modify portal content</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -20,11 +20,11 @@
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=allow_export_action</string> </value>
<value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=prepare_export_action</string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>allow_export</string> </value>
<value> <string>prepare_export</string> </value>
</item>
<item>
<key> <string>description</string> </key>
......@@ -38,7 +38,7 @@
</item>
<item>
<key> <string>id</string> </key>
<value> <string>allow_export_action</string> </value>
<value> <string>prepare_export_action</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
......@@ -50,7 +50,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Allow Export Action</string> </value>
<value> <string>Prepare Export Action</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>afterPrepareImport</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>prepare_import</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string>import_prepared</string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Prepare Import</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>2</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Modify portal content</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="TransitionDefinition" module="Products.DCWorkflow.Transitions"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value>
</item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>actbox_name</string> </key>
<value> <string>Prepare Import Action</string> </value>
</item>
<item>
<key> <string>actbox_url</string> </key>
<value> <string>%(content_url)s/Base_viewWorkflowActionDialog?workflow_action=prepare_import_action</string> </value>
</item>
<item>
<key> <string>after_script_name</string> </key>
<value> <string>prepare_import</string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>guard</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAI=</string> </persistent>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>prepare_import_action</string> </value>
</item>
<item>
<key> <string>new_state_id</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>script_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Prepare Import Action</string> </value>
</item>
<item>
<key> <string>trigger_type</string> </key>
<value> <int>1</int> </value>
</item>
</dictionary>
</pickle>
</record>
<record id="2" aka="AAAAAAAAAAI=">
<pickle>
<global name="Guard" module="Products.DCWorkflow.Guard"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>permissions</string> </key>
<value>
<tuple>
<string>Modify portal content</string>
</tuple>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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