Commit 3c0b1cdb authored by Jérome Perrin's avatar Jérome Perrin

officejs: py3

parent b77d54c3
......@@ -69,22 +69,22 @@ try:
configuration_path_list = []
for key in portal_actions_dict:
path = "portal_types/%s" % key
configuration_path_list.append(base64.b64encode(path))
configuration_path_list.append(base64.b64encode(path.encode()).decode())
for action in portal_actions_dict[key]:
path = "portal_types/%s/%s" % (key, action)
configuration_path_list.append(base64.b64encode(path))
configuration_path_list.append(base64.b64encode(path.encode()).decode())
try:
action_object = context.restrictedTraverse(path)
form = action_object.getActionText().split('/')[-1]
path = "portal_skins/%s/%s" % (portal_skin, form)
configuration_path_list.append(base64.b64encode(path))
configuration_path_list.append(base64.b64encode(path.encode()).decode())
except KeyError as e:
raise KeyError("Error getting portal action info: " + str(e))
if new_dialog_form_list:
for form in new_dialog_form_list:
path = "portal_skins/%s/%s" % (portal_skin, form)
configuration_path_list.append(base64.b64encode(path))
configuration_path_list.append(base64.b64encode(path.encode()).decode())
url_list = []
for path in configuration_path_list:
......
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