Commit e1b9978e authored by Jérome Perrin's avatar Jérome Perrin

configurator_standard: roles for solvers and solver processes

These are needed to view and solve divergences

Because solvers are installed by erp5_configurator_standard_solver, they will
be installed without roles, so we have to recalculate roles after configuration
is finished.
parent 79359a92
...@@ -33,6 +33,9 @@ if business_template is not None: ...@@ -33,6 +33,9 @@ if business_template is not None:
assignment.updateLocalRolesOnSecurityGroups() assignment.updateLocalRolesOnSecurityGroups()
print "\tOpen (assignment): ", assignment.getRelativeUrl() print "\tOpen (assignment): ", assignment.getRelativeUrl()
for solver_type in context.portal_solvers.objectValues():
solver_type.updateLocalRolesOnSecurityGroups()
for gadget in context.portal_gadgets.objectValues(): for gadget in context.portal_gadgets.objectValues():
if gadget.getValidationState() == 'invisible': if gadget.getValidationState() == 'invisible':
gadget.visible() gadget.visible()
......
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