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

configurator_run_my_doc: py3

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