Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
Jérome Perrin
erp5
Commits
78845787
Commit
78845787
authored
Feb 09, 2024
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
officejs: py3
parent
af32e25a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/WebSection_getBase64ConfigurationUrlList.py
...b_officejs_ui/WebSection_getBase64ConfigurationUrlList.py
+4
-4
No files found.
bt5/erp5_officejs/SkinTemplateItem/portal_skins/erp5_web_officejs_ui/WebSection_getBase64ConfigurationUrlList.py
View file @
78845787
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment