Commit 41eb9b3a authored by Rafael Monnerat's avatar Rafael Monnerat

Prevent not send the last message.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23169 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 43bebf74
...@@ -103,8 +103,10 @@ body += """ Messages :\n ...@@ -103,8 +103,10 @@ body += """ Messages :\n
"""\n """\n
# Messages Information \n # Messages Information \n
simulation_state = (\'delivered\', \'started\')\n simulation_state = (\'delivered\', \'started\')\n
bug_message_list = bug.searchFolder(portal_type=\'Bug Line\', sort_on=(("id", "DESC"),), \n bug_message_list = [bug_message]\n
simulation_state=simulation_state)\n lines_list = bug.searchFolder(portal_type=\'Bug Line\', sort_on=(("id", "DESC"),),\n
simulation_state=simulation_state) \n
bug_message_list.extend(lines_list)\n
message_count = len(bug_message_list)+1\n message_count = len(bug_message_list)+1\n
for message in bug_message_list:\n for message in bug_message_list:\n
message_count -= 1\n message_count -= 1\n
...@@ -171,6 +173,7 @@ portal.portal_notifications.sendMessage(sender=bug_message.getSourceValue(),\n ...@@ -171,6 +173,7 @@ portal.portal_notifications.sendMessage(sender=bug_message.getSourceValue(),\n
<string>_inplacevar_</string> <string>_inplacevar_</string>
<string>simulation_state</string> <string>simulation_state</string>
<string>bug_message_list</string> <string>bug_message_list</string>
<string>lines_list</string>
<string>len</string> <string>len</string>
<string>message_count</string> <string>message_count</string>
<string>_getiter_</string> <string>_getiter_</string>
......
318 319
\ 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