Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
slapos.core
Commits
8f96305f
Commit
8f96305f
authored
Feb 23, 2023
by
Cédric Le Ninivin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_jio_api_style: Add support to encoded URL when getting Software Installation
parent
70cad5bf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
master/bt5/slapos_jio_api_style/SkinTemplateItem/portal_skins/slapos_jio_api/jIOWebSection_getObjectFromData.py
...l_skins/slapos_jio_api/jIOWebSection_getObjectFromData.py
+2
-1
No files found.
master/bt5/slapos_jio_api_style/SkinTemplateItem/portal_skins/slapos_jio_api/jIOWebSection_getObjectFromData.py
View file @
8f96305f
portal_type
=
data_dict
[
"portal_type"
]
portal_type
=
data_dict
[
"portal_type"
]
import
urllib
portal
=
context
.
getPortalObject
()
portal
=
context
.
getPortalObject
()
if
portal_type
==
"Software Installation"
:
if
portal_type
==
"Software Installation"
:
...
@@ -7,7 +8,7 @@ if portal_type == "Software Installation":
...
@@ -7,7 +8,7 @@ if portal_type == "Software Installation":
data_dict
[
"compute_node_id"
],
data_dict
[
"compute_node_id"
],
)
)
if
compute_node
:
if
compute_node
:
return
compute_node
.
getSoftwareInstallationFromUrl
(
data_dict
[
"software_release_uri"
]
)
return
compute_node
.
getSoftwareInstallationFromUrl
(
urllib
.
unquote
(
data_dict
[
"software_release_uri"
])
)
elif
portal_type
==
"Compute Node"
:
elif
portal_type
==
"Compute Node"
:
if
"compute_node_id"
in
data_dict
:
if
"compute_node_id"
in
data_dict
:
...
...
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