Commit b116f81b authored by Rafael Monnerat's avatar Rafael Monnerat

Updated more the xml

Updated BugModule_viewBugList, fix some columns names.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22973 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent db454648
...@@ -90,12 +90,6 @@ return None\n ...@@ -90,12 +90,6 @@ return None\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>file, **kw</string> </value> <value> <string>file, **kw</string> </value>
......
...@@ -128,12 +128,6 @@ return object_list\n ...@@ -128,12 +128,6 @@ return object_list\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>object=None, **kw</string> </value> <value> <string>object=None, **kw</string> </value>
......
...@@ -42,12 +42,6 @@ ...@@ -42,12 +42,6 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="ListBox" module="Products.ERP5Form.ListBox"/>
<string>Products.ERP5Form.ListBox</string> <tuple/>
<string>ListBox</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="StringField" module="Products.Formulator.StandardFields"/>
<string>Products.Formulator.StandardFields</string> <tuple/>
<string>StringField</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
...@@ -163,12 +163,6 @@ if download:\n ...@@ -163,12 +163,6 @@ if download:\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string>from_url=None, to_url=None, reply_url=None, subject=None, body=None, attachment_format=None, attachment_list=None, download=None, **kw</string> </value> <value> <string>from_url=None, to_url=None, reply_url=None, subject=None, body=None, attachment_format=None, attachment_list=None, download=None, **kw</string> </value>
......
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
<list> <list>
<string>my_title</string> <string>my_title</string>
<string>my_start_date</string> <string>my_start_date</string>
<string>my_translated_simulation_state_title</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -113,9 +114,8 @@ ...@@ -113,9 +114,8 @@
<key> <string>right</string> </key> <key> <string>right</string> </key>
<value> <value>
<list> <list>
<string>my_source_title</string>
<string>my_destination_title_list</string> <string>my_destination_title_list</string>
<string>my_translated_simulation_state_title</string> <string>my_source_title</string>
</list> </list>
</value> </value>
</item> </item>
......
...@@ -142,12 +142,6 @@ if bug_count:\n ...@@ -142,12 +142,6 @@ if bug_count:\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
......
...@@ -42,12 +42,6 @@ ...@@ -42,12 +42,6 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>action</string> </key> <key> <string>action</string> </key>
<value> <string>Base_doSelect</string> </value> <value> <string>Base_doSelect</string> </value>
......
...@@ -319,8 +319,8 @@ ...@@ -319,8 +319,8 @@
<value> <value>
<list> <list>
<tuple> <tuple>
<string>id</string> <string>reference</string>
<string>ID</string> <string>Reference</string>
</tuple> </tuple>
<tuple> <tuple>
<string>title</string> <string>title</string>
...@@ -331,9 +331,13 @@ ...@@ -331,9 +331,13 @@
<string>Reporter</string> <string>Reporter</string>
</tuple> </tuple>
<tuple> <tuple>
<string>destination_person_title</string> <string>source_person_title</string>
<string>Assignee</string> <string>Assignee</string>
</tuple> </tuple>
<tuple>
<string>destination_person_title</string>
<string>Requester</string>
</tuple>
<tuple> <tuple>
<string>start_date</string> <string>start_date</string>
<string>Date</string> <string>Date</string>
...@@ -354,13 +358,9 @@ ...@@ -354,13 +358,9 @@
<string>bug_difficulty_title</string> <string>bug_difficulty_title</string>
<string>Difficulty</string> <string>Difficulty</string>
</tuple> </tuple>
<tuple>
<string>source_project_title</string>
<string>Project</string>
</tuple>
<tuple> <tuple>
<string>translated_simulation_state_title</string> <string>translated_simulation_state_title</string>
<string>Status</string> <string>State</string>
</tuple> </tuple>
</list> </list>
</value> </value>
...@@ -396,7 +396,7 @@ ...@@ -396,7 +396,7 @@
<string>Reporter</string> <string>Reporter</string>
</tuple> </tuple>
<tuple> <tuple>
<string>destination_person_title</string> <string>source_person_title</string>
<string>Assignee</string> <string>Assignee</string>
</tuple> </tuple>
<tuple> <tuple>
...@@ -419,13 +419,9 @@ ...@@ -419,13 +419,9 @@
<string>bug_difficulty_title</string> <string>bug_difficulty_title</string>
<string>Difficulty</string> <string>Difficulty</string>
</tuple> </tuple>
<tuple>
<string>source_project_title</string>
<string>Project</string>
</tuple>
<tuple> <tuple>
<string>translated_simulation_state_title</string> <string>translated_simulation_state_title</string>
<string>Status</string> <string>State</string>
</tuple> </tuple>
</list> </list>
</value> </value>
...@@ -563,8 +559,8 @@ ...@@ -563,8 +559,8 @@
<value> <value>
<list> <list>
<tuple> <tuple>
<string>id</string> <string>reference</string>
<string>ID</string> <string>Reference</string>
</tuple> </tuple>
<tuple> <tuple>
<string>title</string> <string>title</string>
...@@ -575,9 +571,13 @@ ...@@ -575,9 +571,13 @@
<string>Reporter</string> <string>Reporter</string>
</tuple> </tuple>
<tuple> <tuple>
<string>destination_person_title</string> <string>source_person_title</string>
<string>Assignee</string> <string>Assignee</string>
</tuple> </tuple>
<tuple>
<string>destination_person_title</string>
<string>Requester</string>
</tuple>
<tuple> <tuple>
<string>start_date</string> <string>start_date</string>
<string>Date</string> <string>Date</string>
...@@ -598,13 +598,9 @@ ...@@ -598,13 +598,9 @@
<string>bug_difficulty_title</string> <string>bug_difficulty_title</string>
<string>Difficulty</string> <string>Difficulty</string>
</tuple> </tuple>
<tuple>
<string>source_project_title</string>
<string>Project</string>
</tuple>
<tuple> <tuple>
<string>translated_simulation_state_title</string> <string>translated_simulation_state_title</string>
<string>Status</string> <string>State</string>
</tuple> </tuple>
</list> </list>
</value> </value>
...@@ -622,8 +618,8 @@ ...@@ -622,8 +618,8 @@
<value> <value>
<list> <list>
<tuple> <tuple>
<string>id</string> <string>Reference</string>
<string>id</string> <string>Reference</string>
</tuple> </tuple>
</list> </list>
</value> </value>
...@@ -631,7 +627,20 @@ ...@@ -631,7 +627,20 @@
<item> <item>
<key> <string>sort_columns</string> </key> <key> <string>sort_columns</string> </key>
<value> <value>
<list/> <list>
<tuple>
<string>reference</string>
<string>Reference</string>
</tuple>
<tuple>
<string>title</string>
<string>Title</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>State</string>
</tuple>
</list>
</value> </value>
</item> </item>
<item> <item>
......
...@@ -73,7 +73,7 @@ if person is not None:\n ...@@ -73,7 +73,7 @@ if person is not None:\n
\n \n
# Define Reference from ID\n # Define Reference from ID\n
bug_id = context.getId()\n bug_id = context.getId()\n
context.setReference("B-ERP5-%s" % bug_id)\n context.setReference("#%s" % bug_id)\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -69,7 +69,7 @@ ...@@ -69,7 +69,7 @@
# This script is used to only migrate Items to new bug implementation.\n # This script is used to only migrate Items to new bug implementation.\n
# Set reference\n # Set reference\n
context.setReference("B-%s" % (context.getId()))\n context.setReference("#%s" % (context.getId()))\n
\n \n
# Now Source is Source Trade\n # Now Source is Source Trade\n
source = context.getSource()\n source = context.getSource()\n
...@@ -88,7 +88,7 @@ context.setDestinationValue(None)\n ...@@ -88,7 +88,7 @@ context.setDestinationValue(None)\n
\n \n
bug_history = context.Base_getWorkflowHistoryItemList(workflow_id="bug_workflow")\n bug_history = context.Base_getWorkflowHistoryItemList(workflow_id="bug_workflow")\n
\n \n
valid_action_transitions = ["close_action" , "open_action", "reopen_action", "follow_action" ]\n valid_action_transitions = ["close_action" , "open_action", "reopen_action", "follow_action", "cancel" ]\n
history_list = [ac for ac in bug_history if ac.action in valid_action_transitions ]\n history_list = [ac for ac in bug_history if ac.action in valid_action_transitions ]\n
\n \n
for message in history_list:\n for message in history_list:\n
...@@ -97,9 +97,12 @@ for message in history_list:\n ...@@ -97,9 +97,12 @@ for message in history_list:\n
if message.action == "open_action":\n if message.action == "open_action":\n
bug_message_title = "This bug was Open"\n bug_message_title = "This bug was Open"\n
if message.action == "close_action":\n if message.action == "close_action":\n
bug_message_title = "This bug was Close"\n bug_message_title = "This bug was Closed"\n
if message.action == "reopen_action":\n if message.action == "reopen_action":\n
bug_message_title = "This bug was ReOpen"\n bug_message_title = "This bug was Reopen"\n
if message.action == "cancel":\n
bug_message_title = "This bug was Cancelled"\n
\n
\n \n
bug_message = context.newContent(title=bug_message_title, \n bug_message = context.newContent(title=bug_message_title, \n
portal_type="Bug Line")\n portal_type="Bug Line")\n
...@@ -112,7 +115,7 @@ for message in history_list:\n ...@@ -112,7 +115,7 @@ for message in history_list:\n
# Migration States\n # Migration States\n
for index in range(len(bug_history)):\n for index in range(len(bug_history)):\n
history_item = bug_history[-(index+1)]\n history_item = bug_history[-(index+1)]\n
if history_item.action in [\'open\', \'reopen\', \'close\']:\n if history_item.action in [\'open\', \'reopen\', \'close\' , "cancel"]:\n
context.confirm()\n context.confirm()\n
if history_item.action in [\'reopen\', \'close\']:\n if history_item.action in [\'reopen\', \'close\']:\n
context.portal_workflow.doActionFor(context, \'set_ready_action\')\n context.portal_workflow.doActionFor(context, \'set_ready_action\')\n
...@@ -155,6 +158,14 @@ context.log("%s Bug Migrated." % (context.getReference()))\n ...@@ -155,6 +158,14 @@ context.log("%s Bug Migrated." % (context.getReference()))\n
<key> <string>_params</string> </key> <key> <string>_params</string> </key>
<value> <string></string> </value> <value> <string></string> </value>
</item> </item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>errors</string> </key> <key> <string>errors</string> </key>
<value> <value>
......
...@@ -3,11 +3,8 @@ ...@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE="> <record id="1" aka="AAAAAAAAAAE=">
<pickle> <pickle>
<tuple> <tuple>
<tuple> <global name="ListBox" module="Products.ERP5Form.ListBox"/>
<string>Products.ERP5Form.ListBox</string> <tuple/>
<string>ListBox</string>
</tuple>
<none/>
</tuple> </tuple>
</pickle> </pickle>
<pickle> <pickle>
......
306 308
\ No newline at end of file \ 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