Commit 5d813d36 authored by Jérome Perrin's avatar Jérome Perrin

officejs: py3

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