Commit 51229c44 authored by Łukasz Nowak's avatar Łukasz Nowak

Lock using non writing method.

getId will nicely wait until methods will be executed, there is no need to use
serialize, which will commit new transaction.
parent 13a01bdf
......@@ -58,9 +58,9 @@ portal_type_list = ["Hosting Subscription", "Computer Partition", "Software Inst
for movement in state_change[\'object\'].getMovementList():\n
tag = "softinssec_%s" % movement.getUid()\n
movement.activate(activity=\'SQLQueue\', tag=tag, after_path_and_method_id=(movement.getPath(),\n
(\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).serialize()\n
(\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).getId()\n
movement.activate(activity=\'SQLQueue\', tag=tag, after_path_and_method_id=(movement.getParentValue().getPath(),\n
(\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).serialize()\n
(\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).getId()\n
for software_instance in movement.getAggregateValueList(portal_type=portal_type_list):\n
software_instance.activate(after_tag=tag).updateLocalRolesOnSecurityGroups()\n
</string> </value>
......
......@@ -58,9 +58,9 @@ portal_type_list = ["Slave Instance", "Software Instance", "Hosting Subscription
for movement in state_change[\'object\'].getMovementList():\n
tag = "softinssec_%s" % movement.getUid()\n
movement.activate(activity=\'SQLQueue\', tag=tag, after_path_and_method_id=(movement.getPath(),\n
(\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).serialize()\n
(\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).getId()\n
movement.activate(activity=\'SQLQueue\', tag=tag, after_path_and_method_id=(movement.getParentValue().getPath(),\n
(\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).serialize()\n
(\'immediateReindexObject\', \'recursiveImmediateReindexObject\'))).getId()\n
for software_instance in movement.getAggregateValueList(portal_type=portal_type_list):\n
software_instance.activate(after_tag=tag).updateLocalRolesOnSecurityGroups()\n
</string> </value>
......
421
\ No newline at end of file
422
\ 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