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
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>file, **kw</string> </value>
......
......@@ -128,12 +128,6 @@ return object_list\n
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string>object=None, **kw</string> </value>
......
......@@ -42,12 +42,6 @@
<tuple/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string></string> </value>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.ListBox</string>
<string>ListBox</string>
</tuple>
<none/>
<global name="ListBox" module="Products.ERP5Form.ListBox"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.Formulator.StandardFields</string>
<string>StringField</string>
</tuple>
<none/>
<global name="StringField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......
......@@ -163,12 +163,6 @@ if download:\n
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<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>
......
......@@ -81,7 +81,7 @@
<value>
<dictionary>
<item>
<key> <string>bottom</string> </key>
<key> <string>bottom</string> </key>
<value>
<list>
<string>my_text_content</string>
......@@ -89,33 +89,33 @@
</value>
</item>
<item>
<key> <string>center</string> </key>
<key> <string>center</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>hidden</string> </key>
<key> <string>hidden</string> </key>
<value>
<list/>
</value>
</item>
<item>
<key> <string>left</string> </key>
<key> <string>left</string> </key>
<value>
<list>
<string>my_title</string>
<string>my_start_date</string>
<string>my_translated_simulation_state_title</string>
</list>
</value>
</item>
<item>
<key> <string>right</string> </key>
<key> <string>right</string> </key>
<value>
<list>
<string>my_source_title</string>
<string>my_destination_title_list</string>
<string>my_translated_simulation_state_title</string>
<string>my_source_title</string>
</list>
</value>
</item>
......
......@@ -142,12 +142,6 @@ if bug_count:\n
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_params</string> </key>
<value> <string></string> </value>
......
......@@ -42,12 +42,6 @@
<tuple/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>action</string> </key>
<value> <string>Base_doSelect</string> </value>
......
......@@ -319,8 +319,8 @@
<value>
<list>
<tuple>
<string>id</string>
<string>ID</string>
<string>reference</string>
<string>Reference</string>
</tuple>
<tuple>
<string>title</string>
......@@ -331,9 +331,13 @@
<string>Reporter</string>
</tuple>
<tuple>
<string>destination_person_title</string>
<string>source_person_title</string>
<string>Assignee</string>
</tuple>
<tuple>
<string>destination_person_title</string>
<string>Requester</string>
</tuple>
<tuple>
<string>start_date</string>
<string>Date</string>
......@@ -354,13 +358,9 @@
<string>bug_difficulty_title</string>
<string>Difficulty</string>
</tuple>
<tuple>
<string>source_project_title</string>
<string>Project</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>Status</string>
<string>State</string>
</tuple>
</list>
</value>
......@@ -396,7 +396,7 @@
<string>Reporter</string>
</tuple>
<tuple>
<string>destination_person_title</string>
<string>source_person_title</string>
<string>Assignee</string>
</tuple>
<tuple>
......@@ -419,13 +419,9 @@
<string>bug_difficulty_title</string>
<string>Difficulty</string>
</tuple>
<tuple>
<string>source_project_title</string>
<string>Project</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>Status</string>
<string>State</string>
</tuple>
</list>
</value>
......@@ -563,8 +559,8 @@
<value>
<list>
<tuple>
<string>id</string>
<string>ID</string>
<string>reference</string>
<string>Reference</string>
</tuple>
<tuple>
<string>title</string>
......@@ -575,9 +571,13 @@
<string>Reporter</string>
</tuple>
<tuple>
<string>destination_person_title</string>
<string>source_person_title</string>
<string>Assignee</string>
</tuple>
<tuple>
<string>destination_person_title</string>
<string>Requester</string>
</tuple>
<tuple>
<string>start_date</string>
<string>Date</string>
......@@ -598,13 +598,9 @@
<string>bug_difficulty_title</string>
<string>Difficulty</string>
</tuple>
<tuple>
<string>source_project_title</string>
<string>Project</string>
</tuple>
<tuple>
<string>translated_simulation_state_title</string>
<string>Status</string>
<string>State</string>
</tuple>
</list>
</value>
......@@ -622,8 +618,8 @@
<value>
<list>
<tuple>
<string>id</string>
<string>id</string>
<string>Reference</string>
<string>Reference</string>
</tuple>
</list>
</value>
......@@ -631,7 +627,20 @@
<item>
<key> <string>sort_columns</string> </key>
<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>
</item>
<item>
......
......@@ -73,7 +73,7 @@ if person is not None:\n
\n
# Define Reference from ID\n
bug_id = context.getId()\n
context.setReference("B-ERP5-%s" % bug_id)\n
context.setReference("#%s" % bug_id)\n
</string> </value>
</item>
<item>
......
......@@ -69,7 +69,7 @@
# This script is used to only migrate Items to new bug implementation.\n
# Set reference\n
context.setReference("B-%s" % (context.getId()))\n
context.setReference("#%s" % (context.getId()))\n
\n
# Now Source is Source Trade\n
source = context.getSource()\n
......@@ -88,7 +88,7 @@ context.setDestinationValue(None)\n
\n
bug_history = context.Base_getWorkflowHistoryItemList(workflow_id="bug_workflow")\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
\n
for message in history_list:\n
......@@ -97,9 +97,12 @@ for message in history_list:\n
if message.action == "open_action":\n
bug_message_title = "This bug was Open"\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
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
bug_message = context.newContent(title=bug_message_title, \n
portal_type="Bug Line")\n
......@@ -112,7 +115,7 @@ for message in history_list:\n
# Migration States\n
for index in range(len(bug_history)):\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
if history_item.action in [\'reopen\', \'close\']:\n
context.portal_workflow.doActionFor(context, \'set_ready_action\')\n
......@@ -155,6 +158,14 @@ context.log("%s Bug Migrated." % (context.getReference()))\n
<key> <string>_params</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>_proxy_roles</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item>
<key> <string>errors</string> </key>
<value>
......
......@@ -99,15 +99,15 @@
<value>
<dictionary>
<item>
<key> <string>base_category</string> </key>
<key> <string>base_category</string> </key>
<value> <string>follow_up</string> </value>
</item>
<item>
<key> <string>catalog_index</string> </key>
<key> <string>catalog_index</string> </key>
<value> <string>title</string> </value>
</item>
<item>
<key> <string>columns</string> </key>
<key> <string>columns</string> </key>
<value>
<list>
<tuple>
......@@ -138,7 +138,7 @@
<value> <string>Base_viewFieldLibrary</string> </value>
</item>
<item>
<key> <string>portal_type</string> </key>
<key> <string>portal_type</string> </key>
<value>
<list>
<tuple>
......@@ -153,7 +153,7 @@
<value> <string>Click to edit the target</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<key> <string>title</string> </key>
<value> <string>Follow Up</string> </value>
</item>
<item>
......
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.ERP5Form.ListBox</string>
<string>ListBox</string>
</tuple>
<none/>
<global name="ListBox" module="Products.ERP5Form.ListBox"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......
306
\ No newline at end of file
308
\ 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