Commit ac9fc63b authored by iv's avatar iv

ERP5Workflow: remove storage id in properties from Interaction property sheet

parent e9c783ba
...@@ -34,7 +34,9 @@ ...@@ -34,7 +34,9 @@
</item> </item>
<item> <item>
<key> <string>storage_id</string> </key> <key> <string>storage_id</string> </key>
<value> <string>portal_type_filter</string> </value> <value>
<none/>
</value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -34,7 +34,9 @@ ...@@ -34,7 +34,9 @@
</item> </item>
<item> <item>
<key> <string>storage_id</string> </key> <key> <string>storage_id</string> </key>
<value> <string>portal_type_group_filter</string> </value> <value>
<none/>
</value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -30,7 +30,9 @@ ...@@ -30,7 +30,9 @@
</item> </item>
<item> <item>
<key> <string>storage_id</string> </key> <key> <string>storage_id</string> </key>
<value> <string>temporary_document_disallowed</string> </value> <value>
<none/>
</value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -34,7 +34,9 @@ ...@@ -34,7 +34,9 @@
</item> </item>
<item> <item>
<key> <string>storage_id</string> </key> <key> <string>storage_id</string> </key>
<value> <string>method_id</string> </value> <value>
<none/>
</value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -30,7 +30,9 @@ ...@@ -30,7 +30,9 @@
</item> </item>
<item> <item>
<key> <string>storage_id</string> </key> <key> <string>storage_id</string> </key>
<value> <string>once_per_transaction</string> </value> <value>
<none/>
</value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -30,7 +30,9 @@ ...@@ -30,7 +30,9 @@
</item> </item>
<item> <item>
<key> <string>storage_id</string> </key> <key> <string>storage_id</string> </key>
<value> <string>trigger_type</string> </value> <value>
<none/>
</value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
...@@ -61,7 +61,7 @@ class Interaction(IdAsReferenceMixin('interaction_', "prefix"), XMLObject): ...@@ -61,7 +61,7 @@ class Interaction(IdAsReferenceMixin('interaction_', "prefix"), XMLObject):
trigger_type = TRIGGER_WORKFLOW_METHOD trigger_type = TRIGGER_WORKFLOW_METHOD
portal_type_filter = None portal_type_filter = None
portal_type_group_filter = None portal_type_group_filter = None
once_per_transaction = False trigger_once_per_transaction = False
temporary_document_disallowed = False temporary_document_disallowed = False
var_exprs = None # A mapping. var_exprs = None # A mapping.
guard = None guard = None
......
...@@ -407,8 +407,8 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow): ...@@ -407,8 +407,8 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow):
interaction_list = self.objectValues(portal_type='Interaction') interaction_list = self.objectValues(portal_type='Interaction')
interaction_prop_id_to_show = sorted(['actbox_category', 'actbox_url', 'actbox_name', interaction_prop_id_to_show = sorted(['actbox_category', 'actbox_url', 'actbox_name',
'activate_script_name', 'after_script_name', 'before_commit_script_name', 'activate_script_name', 'after_script_name', 'before_commit_script_name',
'description', 'groups', 'roles', 'expr', 'permissions', 'method_id', 'description', 'groups', 'roles', 'expr', 'permissions', 'trigger_method_id',
'once_per_transaction', 'portal_type_filter', 'portal_type_group_filter', 'trigger_once_per_transaction', 'portal_type_filter', 'portal_type_group_filter',
'script_name', 'temporary_document_disallowed', 'trigger_type']) 'script_name', 'temporary_document_disallowed', 'trigger_type'])
for tdef in interaction_list: for tdef in interaction_list:
interaction_reference_list.append(tdef.getReference()) interaction_reference_list.append(tdef.getReference())
...@@ -436,14 +436,14 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow): ...@@ -436,14 +436,14 @@ class InteractionWorkflow(IdAsReferenceMixin("", "prefix"), Workflow):
elif property_id in ['actbox_name', 'actbox_url', 'actbox_category', 'trigger_type']: elif property_id in ['actbox_name', 'actbox_url', 'actbox_category', 'trigger_type']:
property_value = getattr(tdef, property_id, None) property_value = getattr(tdef, property_id, None)
sub_object = SubElement(interaction, property_id, attrib=dict(type='string')) sub_object = SubElement(interaction, property_id, attrib=dict(type='string'))
elif property_id in ['activate_script_name', 'after_script_name', 'before_commit_script_name', elif property_id in ['activate_script_name', 'after_script_name',
'method_id', 'once_per_transaction', 'portal_type_filter', 'portal_type_group_filter', 'before_commit_script_name', 'portal_type_filter',
'script_name', 'temporary_document_disallowed']: 'portal_type_group_filter', 'script_name',
'temporary_document_disallowed']:
if property_id == 'activate_script_name': prop_id = 'activate_script_name_list' if property_id == 'activate_script_name': prop_id = 'activate_script_name_list'
if property_id == 'after_script_name': prop_id = 'after_script_name_list' if property_id == 'after_script_name': prop_id = 'after_script_name_list'
if property_id == 'before_commit_script_name': prop_id = 'before_commit_script_name_list' if property_id == 'before_commit_script_name': prop_id = 'before_commit_script_name_list'
if property_id == 'method_id': prop_id = 'trigger_method_id_list' if property_id == 'trigger_method_id': prop_id = 'trigger_method_id_list'
if property_id == 'once_per_transaction': prop_id = 'trigger_once_per_transaction'
if property_id == 'portal_type_filter': prop_id = 'portal_type_filter_list' if property_id == 'portal_type_filter': prop_id = 'portal_type_filter_list'
if property_id == 'portal_type_group_filter': prop_id = 'portal_type_group_filter_list' if property_id == 'portal_type_group_filter': prop_id = 'portal_type_group_filter_list'
if property_id == 'script_name': prop_id = 'before_script_name_list' if property_id == 'script_name': prop_id = 'before_script_name_list'
......
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