[Erp5-report] r13429 - /erp5/trunk/products/CMFActivity/Activity/SQLDict.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Mar 15 15:12:24 CET 2007
Author: seb
Date: Thu Mar 15 15:12:22 2007
New Revision: 13429
URL: http://svn.erp5.org?rev=13429&view=rev
Log:
make sure the list of uid is not empty when we delete message, this should fix a random problem in testERP5Catalog
Modified:
erp5/trunk/products/CMFActivity/Activity/SQLDict.py
Modified: erp5/trunk/products/CMFActivity/Activity/SQLDict.py
URL: http://svn.erp5.org/erp5/trunk/products/CMFActivity/Activity/SQLDict.py?rev=13429&r1=13428&r2=13429&view=diff
==============================================================================
--- erp5/trunk/products/CMFActivity/Activity/SQLDict.py (original)
+++ erp5/trunk/products/CMFActivity/Activity/SQLDict.py Thu Mar 15 15:12:22 2007
@@ -454,7 +454,8 @@
if len(result):
uid_list = activity_tool.SQLDict_readUidList(path = path, method_id = method_id,
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):
# YO: reading all lines might cause a deadlock
More information about the Erp5-report
mailing list