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

Fire up updateLocalRoles only in case of setup delivery.

parent 2c7d6801
...@@ -56,6 +56,8 @@ proxy role since it may be called by owner in draft state.\n ...@@ -56,6 +56,8 @@ proxy role since it may be called by owner in draft state.\n
"""\n """\n
portal_type_list = ["Hosting Subscription", "Computer Partition", "Software Instance", "Slave Instance"]\n portal_type_list = ["Hosting Subscription", "Computer Partition", "Software Instance", "Slave Instance"]\n
for movement in state_change[\'object\'].getMovementList():\n for movement in state_change[\'object\'].getMovementList():\n
if movement.getResource() != movement.getPortalObject().portal_preferences.getPreferredInstanceSetupResource():\n
continue\n
tag = "softinssec_%s" % movement.getUid()\n tag = "softinssec_%s" % movement.getUid()\n
movement.activate(activity=\'SQLQueue\', tag=tag, after_path_and_method_id=(movement.getPath(),\n movement.activate(activity=\'SQLQueue\', tag=tag, after_path_and_method_id=(movement.getPath(),\n
(\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).getId()\n (\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).getId()\n
......
491 492
\ 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