Commit dba378d6 authored by Arnaud Fontaine's avatar Arnaud Fontaine

WIP: Not needed?

parent f27568d8
...@@ -39,7 +39,7 @@ for person in person_value_list: ...@@ -39,7 +39,7 @@ for person in person_value_list:
portal_type='Leave Request Period', portal_type='Leave Request Period',
group_by_resource=1): group_by_resource=1):
resource = inventory.resource_relative_url resource = inventory.resource_relative_url or ''
if inventory.resource_uid in presence_resource_uid_list: if inventory.resource_uid in presence_resource_uid_list:
raise ValueError("This report does not work when same resource are" raise ValueError("This report does not work when same resource are"
......
...@@ -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