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,7 +64,8 @@ class SQLDict(RAMDict): ...@@ -64,7 +64,8 @@ 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)
activity_tool.SQLDict_delMessage(uid = uid_list) if len(uid_list)>0:
activity_tool.SQLDict_delMessage(uid = uid_list)
# Registration management # Registration management
def registerActivityBuffer(self, activity_buffer): def registerActivityBuffer(self, activity_buffer):
......
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