Commit 7e10fa20 authored by Sebastien Robin's avatar Sebastien Robin

do no remove message when there is no messages


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@684 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 87063a20
...@@ -64,6 +64,7 @@ class SQLDict(RAMDict): ...@@ -64,6 +64,7 @@ class SQLDict(RAMDict):
# Erase all messages in a single transaction # Erase all messages in a single transaction
uid_list = activity_tool.SQLDict_readUidList(path=m.object_path, method_id=m.method_id,processing_node=None) uid_list = activity_tool.SQLDict_readUidList(path=m.object_path, method_id=m.method_id,processing_node=None)
uid_list = map(lambda x:x.uid, uid_list) uid_list = map(lambda x:x.uid, uid_list)
if len(uid_list)>0:
activity_tool.SQLDict_delMessage(uid = uid_list) activity_tool.SQLDict_delMessage(uid = uid_list)
# Registration management # Registration management
......
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