Commit beb53ae0 authored by Rafael Monnerat's avatar Rafael Monnerat

Improved Notification for Bugs.

If Supervisor are set, send this information with the message.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23795 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2550aa0c
...@@ -9,22 +9,10 @@ ...@@ -9,22 +9,10 @@
</pickle> </pickle>
<pickle> <pickle>
<dictionary> <dictionary>
<item>
<key> <string>Python_magic</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>Script_magic</string> </key> <key> <string>Script_magic</string> </key>
<value> <int>3</int> </value> <value> <int>3</int> </value>
</item> </item>
<item>
<key> <string>__ac_local_roles__</string> </key>
<value>
<none/>
</value>
</item>
<item> <item>
<key> <string>_bind_names</string> </key> <key> <string>_bind_names</string> </key>
<value> <value>
...@@ -71,21 +59,27 @@ ...@@ -71,21 +59,27 @@
bug = bug_message.getParentValue()\n bug = bug_message.getParentValue()\n
body = """\n body = """\n
Bug : %s\n Bug : %s\n
Status : %s\n Status : %s\n
Date : %s\n Date : %s\n
Link : %s/view\n Link : %s/view\n
""" % (bug.getTitle(\'\'), bug.getSimulationStateTitle(),\n """ % (bug.getTitle(\'\'), bug.getSimulationStateTitle(),\n
bug.getStartDate(\'\'), bug.getAbsoluteUrl())\n bug.getStartDate(\'\'), bug.getAbsoluteUrl())\n
\n \n
if bug.getSourceTitle() is not None:\n if bug.getSourceTitle() is not None:\n
body += """ Requester : %s\n body += """ Requester : %s\n
Assignee : %s\n Assignee : %s\n
Reporter : %s\n """ % (bug.getDestinationTitle(\'\'), bug.getSourceTitle(\'\'),)\n
""" % (bug.getDestinationTitle(\'\'), bug.getSourceTitle(\'\'),\n \n
bug.getSourceTradeTitle(\'\'))\n if bug.getSourceTradeTitle() is not None:\n
body += """ Reporter : %s\n
""" % (bug.getSourceTradeTitle(\'\'),)\n
\n
if bug.getSourceDecisionTitle() is not None:\n
body += """ Supervisor : %s\n
""" % (bug.getSourceDecisionTitle(\'\'),)\n
\n \n
if bug.getDestinationProjectTitle() is not None:\n if bug.getDestinationProjectTitle() is not None:\n
body += """ Request Project : %s\n body += """ Request Project : %s\n
""" % bug.getDestinationProjectTitle()\n """ % bug.getDestinationProjectTitle()\n
\n \n
if bug.getSourceProjectTitle() is not None:\n if bug.getSourceProjectTitle() is not None:\n
...@@ -122,7 +116,7 @@ for message in bug_message_list:\n ...@@ -122,7 +116,7 @@ for message in bug_message_list:\n
body += """\n body += """\n
++++++ Message #%s submitted by %s on %s ++++++\n ++++++ Message #%s submitted by %s on %s ++++++\n
%s\n %s\n
""" % (message_count, bug_message.getSourceTitle(\'\'),\n """ % (message_count, message.getSourceTitle(\'\'),\n
message.getStartDate(), text )\n message.getStartDate(), text )\n
\n \n
recipient_list = bug_message.BugLine_getRecipientValueList()\n recipient_list = bug_message.BugLine_getRecipientValueList()\n
...@@ -140,12 +134,6 @@ portal.portal_notifications.sendMessage(sender=bug_message.getSourceValue(),\n ...@@ -140,12 +134,6 @@ portal.portal_notifications.sendMessage(sender=bug_message.getSourceValue(),\n
<none/> <none/>
</value> </value>
</item> </item>
<item>
<key> <string>_filepath</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>
......
371 372
\ 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