Commit 459e9baa authored by Julien Muchembled's avatar Julien Muchembled

CMFActivity: fix possible AttributeError when distributing SQLQueue messages

Also do minor formatting in SQLDict._validate to minimize differences with
SQLQueue._validate.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@38297 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 03b85b83
......@@ -357,9 +357,9 @@ class SQLDict(RAMDict, SQLBase):
m = self.loadMessage(line.message,
line=line,
uid=line.uid,
order_validation_text=line.order_validation_text,
date=line.date,
processing_node=line.processing_node)
processing_node=line.processing_node,
order_validation_text=line.order_validation_text)
message_list.append(m)
return message_list
else:
......
......@@ -291,6 +291,7 @@ class SQLQueue(RAMQueue, SQLBase):
message_list = []
for line in result:
m = self.loadMessage(line.message,
line=line,
uid=line.uid,
date=line.date,
processing_node=line.processing_node)
......
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