Commit 37206d84 authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

configurator_run_my_doc: py3

parent 1b94f67a
......@@ -51,7 +51,7 @@ if business_template is not None:
# no need to update security on categories
if obj is not None and obj.getPortalType() not in ('Category', 'Base Category',):
obj.updateLocalRolesOnSecurityGroups()
context.log("Updated Role Mappings for: ", path, obj.getPortalType())
context.log("Updated Role Mappings for: %s (%s)" % (path, obj.getPortalType()))
# validate and open all objects
for path in business_template.getTemplatePathList():
......@@ -62,13 +62,13 @@ if business_template is not None:
'Organisation'):
if isTransitionPossible(obj, 'validate'):
obj.validate()
context.log("Validated: ", obj.getRelativeUrl())
context.log("Validated: %s" % obj.getRelativeUrl())
for assignment in obj.contentValues(filter={'portal_type':'Assignment'}):
if isTransitionPossible(assignment, 'open'):
assignment.open()
assignment.updateLocalRolesOnSecurityGroups()
context.log("\tOpen (assignment): ", assignment.getRelativeUrl())
context.log("\tOpen (assignment): %s" % assignment.getRelativeUrl())
for gadget in context.portal_gadgets.objectValues():
if gadget.getValidationState() == 'invisible':
......
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