Commit 9b8dc0c0 authored by Sebastien Robin's avatar Sebastien Robin

make sure the list of uid is not empty when we delete message, this should fix...

make sure the list of uid is not empty when we delete message, this should fix a random problem in testERP5Catalog

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13429 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 550b955e
...@@ -454,7 +454,8 @@ class SQLDict(RAMDict): ...@@ -454,7 +454,8 @@ class SQLDict(RAMDict):
if len(result): if len(result):
uid_list = activity_tool.SQLDict_readUidList(path = path, method_id = method_id, uid_list = activity_tool.SQLDict_readUidList(path = path, method_id = method_id,
processing_node = None,) processing_node = None,)
activity_tool.SQLDict_delMessage(uid = [x.uid for x in uid_list]) if len(uid_list)>0:
activity_tool.SQLDict_delMessage(uid = [x.uid for x in uid_list])
def getMessageList(self, activity_tool, processing_node=None,include_processing=0,**kw): def getMessageList(self, activity_tool, processing_node=None,include_processing=0,**kw):
# YO: reading all lines might cause a deadlock # YO: reading all lines might cause a deadlock
......
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