Commit 966cb758 authored by Sebastien Robin's avatar Sebastien Robin

RAMQueue activities are now stored by each cmfsite, and corrected infinite loop


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@720 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6e895eeb
...@@ -76,6 +76,7 @@ class RAMDict(Queue): ...@@ -76,6 +76,7 @@ class RAMDict(Queue):
if m.validate(self, activity_tool): if m.validate(self, activity_tool):
activity_tool.invoke(m) activity_tool.invoke(m)
del self.dict[key] del self.dict[key]
get_transaction().commit()
return 0 return 0
return 1 return 1
......
...@@ -67,6 +67,7 @@ class RAMQueue(Queue): ...@@ -67,6 +67,7 @@ class RAMQueue(Queue):
m = self.getQueue(activity_tool)[0] m = self.getQueue(activity_tool)[0]
activity_tool.invoke(m) activity_tool.invoke(m)
self.deleteMessage(activity_tool, m) self.deleteMessage(activity_tool, m)
get_transaction().commit()
return 0 # Keep on ticking return 0 # Keep on ticking
def hasActivity(self, activity_tool, object, **kw): def hasActivity(self, activity_tool, object, **kw):
......
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