Commit c44d6b42 authored by Łukasz Nowak's avatar Łukasz Nowak

Minimise the risk of fireing up activity too early.

parent b1d37e0c
...@@ -54,7 +54,10 @@ ...@@ -54,7 +54,10 @@
if delivery.getCausalityState() not in (\'building\', \'calculating\'):\n if delivery.getCausalityState() not in (\'building\', \'calculating\'):\n
return\n return\n
\n \n
if context.getPortalObject().portal_activities.countMessage(path=delivery.getPath()) == 0:\n portal_activities = context.getPortalObject().portal_activities\n
path = delivery.getPath()\n
if context.getPortalObject().portal_activities.countMessage(path=path) == 0 \\\n
and portal_activities.countMessageWithTag(\'%s_solve\' % path) == 0:\n
delivery.updateCausalityState()\n delivery.updateCausalityState()\n
</string> </value> </string> </value>
</item> </item>
......
496 497
\ No newline at end of file \ No newline at end of file
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