Commit 9d6bdcb4 authored by Jérome Perrin's avatar Jérome Perrin

try to adapt BugModule_sendOpenBugListReminder to new bug model, now we use...

try to adapt BugModule_sendOpenBugListReminder to new bug model, now we use simulation state, and reference instead of id

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23019 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d9efdaba
......@@ -82,7 +82,7 @@ assigned_to_dict={}\n
not_assigned_bug_list=[]\n
\n
for bug in bug_module.searchFolder(portal_type=\'Bug\',\n
validation_state=\'open\',\n
simulation_state=\'confirmed\',\n
sort_on=((\'id\', \'asc\', \'int\'),)):\n
bug = bug.getObject()\n
if bug.getDestination():\n
......@@ -94,7 +94,7 @@ for bug in bug_module.searchFolder(portal_type=\'Bug\',\n
for assignee, bug_list in assigned_to_dict.items():\n
addBodyLine(" Assigned to %s:" % bug_list[0].getDestinationTitle())\n
for bug in bug_list:\n
addBodyLine(" [#%s] %s" % (bug.getId(), bug.getTitle()))\n
addBodyLine(" [%s] %s" % (bug.getReference(), bug.getTitle()))\n
addBodyLine(" %s/%s/view" % (server_url, bug.getRelativeUrl()))\n
addBodyLine(\'\')\n
addBodyLine(\'\')\n
......@@ -103,7 +103,7 @@ if not_assigned_bug_list:\n
addBodyLine(\'\')\n
addBodyLine(" Not assigned:")\n
for bug in not_assigned_bug_list:\n
addBodyLine(" [#%s] %s" % (bug.getId(), bug.getTitle()))\n
addBodyLine(" [%s] %s" % (bug.getReference(), bug.getTitle()))\n
addBodyLine(" %s/%s/view" % (server_url, bug.getRelativeUrl()))\n
addBodyLine(\'\')\n
\n
......@@ -142,6 +142,12 @@ 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>
......
310
\ No newline at end of file
311
\ 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