Commit 6d82b337 authored by iv's avatar iv

ERP5Workflow: revert some changes

parent f387101b
...@@ -52,7 +52,6 @@ from Tool import CategoryTool, SimulationTool, RuleTool, IdTool, TemplateTool,\ ...@@ -52,7 +52,6 @@ from Tool import CategoryTool, SimulationTool, RuleTool, IdTool, TemplateTool,\
AcknowledgementTool, SolverTool, SolverProcessTool,\ AcknowledgementTool, SolverTool, SolverProcessTool,\
ConversionTool, RoundingTool, UrlRegistryTool, InterfaceTool,\ ConversionTool, RoundingTool, UrlRegistryTool, InterfaceTool,\
CertificateAuthorityTool, InotifyTool, TaskDistributionTool CertificateAuthorityTool, InotifyTool, TaskDistributionTool
import ERP5Site import ERP5Site
from Document import PythonScript from Document import PythonScript
object_classes = ( ERP5Site.ERP5Site, object_classes = ( ERP5Site.ERP5Site,
......
...@@ -7,7 +7,7 @@ if button_title is not None: ...@@ -7,7 +7,7 @@ if button_title is not None:
wf_actions = context.portal_actions.portal_actions.listFilteredActionsFor(context)['workflow'] wf_actions = context.portal_actions.portal_actions.listFilteredActionsFor(context)['workflow']
workflow_action = request.get('workflow_action', None) or request.get('field_my_workflow_action', None) workflow_action = request.get('workflow_action', None) or request.get('field_my_workflow_action', None)
if workflow_action: if workflow_action:
for action in wf_actions: for action in wf_actions:
if action['id'] == workflow_action: if action['id'] == workflow_action:
return action['name'] return action['name']
......
...@@ -10,10 +10,6 @@ ...@@ -10,10 +10,6 @@
<key> <string>actbox_category</string> </key> <key> <string>actbox_category</string> </key>
<value> <string>workflow</string> </value> <value> <string>workflow</string> </value>
</item> </item>
<item>
<key> <string>actbox_icon</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>actbox_name</string> </key> <key> <string>actbox_name</string> </key>
<value> <string>Validate</string> </value> <value> <string>Validate</string> </value>
......
...@@ -46,12 +46,18 @@ ...@@ -46,12 +46,18 @@
</record> </record>
<record id="2" aka="AAAAAAAAAAI="> <record id="2" aka="AAAAAAAAAAI=">
<pickle> <pickle>
<global name="PersistentMapping" module="Persistence.mapping"/> <tuple>
<tuple>
<string>Persistence</string>
<string>PersistentMapping</string>
</tuple>
<none/>
</tuple>
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item> <item>
<key> <string>data</string> </key> <key> <string>_container</string> </key>
<value> <value>
<dictionary> <dictionary>
<item> <item>
......
erp5_full_text_mroonga_catalog erp5_full_text_mroonga_catalog
\ No newline at end of file erp5_base
\ No newline at end of file
...@@ -47,12 +47,6 @@ ...@@ -47,12 +47,6 @@
<key> <string>portal_type</string> </key> <key> <string>portal_type</string> </key>
<value> <string>Standard Property</string> </value> <value> <string>Standard Property</string> </value>
</item> </item>
<item>
<key> <string>property_default</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>storage_id</string> </key> <key> <string>storage_id</string> </key>
<value> <string>_params</string> </value> <value> <string>_params</string> </value>
......
...@@ -215,7 +215,6 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional): ...@@ -215,7 +215,6 @@ class TestBase(ERP5TypeTestCase, ZopeTestCase.Functional):
Check if there is no activity in activity queue. Check if there is no activity in activity queue.
""" """
portal = self.getPortal() portal = self.getPortal()
self.tic()
message_list = portal.portal_activities.getMessageList() message_list = portal.portal_activities.getMessageList()
self.assertEqual(len(message_list), 0) self.assertEqual(len(message_list), 0)
......
...@@ -444,14 +444,6 @@ class TestERP5SyncMLMixin(TestMixin): ...@@ -444,14 +444,6 @@ class TestERP5SyncMLMixin(TestMixin):
else: else:
identity = False identity = False
break break
if 'edit_workflow' in object_sub.getTypeInfo().getTypeWorkflowList() and\
'edit_workflow' in object_pub.getTypeInfo().getTypeWorkflowList():
# edit workflow has a known bug, that may generate 2 times of history for
# a single action like "edit". Until we find out the bug, we may reactivate this
# part. In new workflow, on object_pub side it still generated 2 times of history
# for a sigle action "edit", but on the object_sub side, it only generated
# once, which it should have been.
identity = True
if not identity: if not identity:
self.fail('diff between pub:%s and sub:%s \n%s' % (object_pub.getPath(), self.fail('diff between pub:%s and sub:%s \n%s' % (object_pub.getPath(),
object_sub.getPath(), object_sub.getPath(),
......
...@@ -3,7 +3,6 @@ ...@@ -3,7 +3,6 @@
# #
# Copyright (c) 2002-2003 Nexedi SARL and Contributors. All Rights Reserved. # Copyright (c) 2002-2003 Nexedi SARL and Contributors. All Rights Reserved.
# Jean-Paul Smets-Solanes <jp@nexedi.com> # Jean-Paul Smets-Solanes <jp@nexedi.com>
# 2014 Wenjie Zheng <wenjie.zheng@tiolive.com>
# #
# WARNING: This program as such is intended to be used by professional # WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential # programmers who take the whole responsability of assessing all potential
...@@ -176,7 +175,6 @@ class WorkflowMethod(Method): ...@@ -176,7 +175,6 @@ class WorkflowMethod(Method):
valid_invoke_once_item_list = [] valid_invoke_once_item_list = []
# Only keep those transitions which were never invoked # Only keep those transitions which were never invoked
once_transition_dict = {} once_transition_dict = {}
for wf_id, transition_list in invoke_once_dict.iteritems(): for wf_id, transition_list in invoke_once_dict.iteritems():
valid_transition_list = [] valid_transition_list = []
for transition_id in transition_list: for transition_id in transition_list:
...@@ -581,7 +579,6 @@ def initializePortalTypeDynamicWorkflowMethods(ptype_klass, portal_workflow): ...@@ -581,7 +579,6 @@ def initializePortalTypeDynamicWorkflowMethods(ptype_klass, portal_workflow):
for wf_id, v in interaction_workflow_dict.iteritems(): for wf_id, v in interaction_workflow_dict.iteritems():
transition_id_set, trigger_dict = v transition_id_set, trigger_dict = v
for tr_id, tdef in trigger_dict.iteritems(): for tr_id, tdef in trigger_dict.iteritems():
# Check portal type filter # Check portal type filter
if (tdef.portal_type_filter is not None and \ if (tdef.portal_type_filter is not None and \
portal_type not in tdef.portal_type_filter): portal_type not in tdef.portal_type_filter):
......
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