Commit db454648 authored by Rafael Monnerat's avatar Rafael Monnerat

- Fix BugLine_view.

- Improved a bit the notification messages.
- Update few xml format

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22972 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a72982f2
...@@ -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_edit</string> </value> <value> <string>Base_edit</string> </value>
...@@ -87,7 +81,7 @@ ...@@ -87,7 +81,7 @@
<value> <value>
<dictionary> <dictionary>
<item> <item>
<key> <string>bottom</string> </key> <key> <string>bottom</string> </key>
<value> <value>
<list> <list>
<string>my_text_content</string> <string>my_text_content</string>
...@@ -95,34 +89,33 @@ ...@@ -95,34 +89,33 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>center</string> </key> <key> <string>center</string> </key>
<value> <value>
<list/> <list/>
</value> </value>
</item> </item>
<item> <item>
<key> <string>hidden</string> </key> <key> <string>hidden</string> </key>
<value> <value>
<list/> <list/>
</value> </value>
</item> </item>
<item> <item>
<key> <string>left</string> </key> <key> <string>left</string> </key>
<value> <value>
<list> <list>
<string>my_title</string> <string>my_title</string>
<string>my_causality_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>
<item> <item>
<key> <string>right</string> </key> <key> <string>right</string> </key>
<value> <value>
<list> <list>
<string>my_source_title</string> <string>my_source_title</string>
<string>my_destination_title_list</string> <string>my_destination_title_list</string>
<string>my_translated_simulation_state_title</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -155,7 +148,7 @@ ...@@ -155,7 +148,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string>Bug Line</string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>unicode_mode</string> </key> <key> <string>unicode_mode</string> </key>
......
...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
<tuple/> <tuple/>
</value> </value>
</item> </item>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>creation_guard</string> </key> <key> <string>creation_guard</string> </key>
<value> <value>
......
...@@ -81,12 +81,6 @@ event.Base_checkConsistency()\n ...@@ -81,12 +81,6 @@ event.Base_checkConsistency()\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>state_change</string> </value> <value> <string>state_change</string> </value>
......
...@@ -70,12 +70,10 @@ ...@@ -70,12 +70,10 @@
body = """\n body = """\n
Reporter: %s\n Reporter: %s\n
Date: %s\n Date: %s\n
Follow Up: %s\n
\n \n
Bug Message:\n Bug Message:\n
\n \n
""" % (bug_message.getSourceTitle(\'\'), bug_message.getStartDate(\'\'), \n """ % (bug_message.getSourceTitle(\'\'), bug_message.getStartDate(\'\'))\n
bug_message.getFollowUpTitle(\'\'))\n
\n \n
#XXX This does not support structured text format.\n #XXX This does not support structured text format.\n
body += bug_message.getTextContent("") \n body += bug_message.getTextContent("") \n
...@@ -99,15 +97,13 @@ if bug.getSourceTitle() is not None:\n ...@@ -99,15 +97,13 @@ if bug.getSourceTitle() is not None:\n
""" % (bug.getDestinationTitle(\'\'), bug.getSourceTitle(\'\'),\n """ % (bug.getDestinationTitle(\'\'), bug.getSourceTitle(\'\'),\n
bug.getSourceTradeTitle(\'\'))\n bug.getSourceTradeTitle(\'\'))\n
\n \n
body += """ Link: %s\n body += """ Link: %s\n
Request Project: %s\n Request Project: %s\n
Assigned Project: %s\n Assigned Project: %s\n
Follow Up: %s\n
Description: \n Description: \n
%s\n %s\n
""" % (bug.getAbsoluteUrl(), bug.getDestinationProjectTitle(\'\'), \n """ % (bug.getAbsoluteUrl(), bug.getDestinationProjectTitle(\'\'), \n
bug.getSourceProjectTitle(\'\'), \n bug.getSourceProjectTitle(\'\'), bug.getDescription(\'\'))\n
\' / \'.join(bug.getFollowUpTitleList(\'\')), bug.getDescription(\'\'))\n
\n \n
body += """\n body += """\n
+---------------------- Messages Related -----------------------+\n +---------------------- Messages Related -----------------------+\n
...@@ -142,12 +138,6 @@ portal.portal_notifications.sendMessage(sender=bug_message.getSourceValue(),\n ...@@ -142,12 +138,6 @@ portal.portal_notifications.sendMessage(sender=bug_message.getSourceValue(),\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>state_change</string> </value> <value> <string>state_change</string> </value>
......
...@@ -69,16 +69,17 @@ ...@@ -69,16 +69,17 @@
bug = state_change["object"]\n bug = state_change["object"]\n
valid_transaction_list = ["confirm_action", "stop_action", \n valid_transaction_list = ["confirm_action", "stop_action", \n
"deliver_action", "set_ready_action"]\n "deliver_action", "set_ready_action" , "cancel_action"]\n
\n \n
message = [ h for h in state_change.getHistory() \\\n message = [ h for h in state_change.getHistory() \\\n
if h[\'action\'] in valid_transaction_list]\n if h[\'action\'] in valid_transaction_list]\n
\n \n
comment = ""\n comment = ""\n
if len(message) > 0:\n if len(message) > 0:\n
comment=message[-1]["comment"] \n comment=message[-1]["comment"]\n
\n \n
line = bug.newContent(title="This bug was %s" % bug.getSimulationStateTitle(),\n line = bug.newContent(title="Bug %s was %s" % (bug.getReference(),\n
bug.getSimulationStateTitle()),\n
portal_type="Bug Line",\n portal_type="Bug Line",\n
text_content=comment)\n text_content=comment)\n
\n \n
...@@ -100,12 +101,6 @@ line.start()\n ...@@ -100,12 +101,6 @@ line.start()\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>state_change</string> </value> <value> <string>state_change</string> </value>
......
...@@ -73,18 +73,11 @@ ...@@ -73,18 +73,11 @@
</tuple> </tuple>
</value> </value>
</item> </item>
<item>
<key> <string>Add Content Type Registrys</string> </key>
<value>
<tuple>
<string>Manager</string>
</tuple>
</value>
</item>
<item> <item>
<key> <string>Add portal content</string> </key> <key> <string>Add portal content</string> </key>
<value> <value>
<tuple> <tuple>
<string>Assignor</string>
<string>Manager</string> <string>Manager</string>
</tuple> </tuple>
</value> </value>
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</item> </item>
<item> <item>
<key> <string>after_script_name</string> </key> <key> <string>after_script_name</string> </key>
<value> <string></string> </value> <value> <string>Bug_sendNotification</string> </value>
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
...@@ -51,7 +51,7 @@ ...@@ -51,7 +51,7 @@
</item> </item>
<item> <item>
<key> <string>script_name</string> </key> <key> <string>script_name</string> </key>
<value> <string>Bug_sendNotification</string> </value> <value> <string></string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
......
302 306
\ 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