Commit 6a302e3a authored by Łukasz Nowak's avatar Łukasz Nowak

Separate modification and reindexation.

parent 98a5b9b7
......@@ -244,3 +244,6 @@ def SalePackingListLine_deliver(self):
if self.getSimulationState() != 'delivered':
portal.portal_workflow._jumpToStateFor(self.getParentValue(), 'delivered')
self.recursiveReindexObject()
def Computer_updateLocalRoles(self):
self.updateLocalRolesOnSecurityGroups(reindex=False)
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<global name="ExternalMethod" module="Products.ExternalMethod.ExternalMethod"/>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_function</string> </key>
<value> <string>Computer_updateLocalRoles</string> </value>
</item>
<item>
<key> <string>_module</string> </key>
<value> <string>VifibUpgrader</string> </value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>Computer_updateLocalRoles</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
......@@ -50,7 +50,10 @@
</item>
<item>
<key> <string>_body</string> </key>
<value> <string>context.portal_types.Computer.updateRoleMapping()\n
<value> <string>portal = context.getPortalObject()\n
portal.portal_catalog.searchAndActivate(portal_type=\'Computer\', method_id=\'Computer_updateLocalRoles\', activate_kw={\'tag\': \'Computer_updateLocalRoles\'})\n
\n
portal.computer_module.activate(after_tag=\'Computer_updateLocalRoles\').Folder_reindexAll()\n
</string> </value>
</item>
<item>
......
106
\ No newline at end of file
107
\ 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