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
Léo-Paul Géneau
slapos.core
Commits
b24a6c9f
Commit
b24a6c9f
authored
May 03, 2016
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slapos_web: Allow to pass shared and restricted_softwaretype via url to the parameter editor.
parent
2d6fe621
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_getRequestGadgetOptionDictAsJSON.py
...ns/vifib_hosting/Base_getRequestGadgetOptionDictAsJSON.py
+16
-1
No files found.
master/bt5/slapos_web/SkinTemplateItem/portal_skins/vifib_hosting/Base_getRequestGadgetOptionDictAsJSON.py
View file @
b24a6c9f
...
...
@@ -10,10 +10,25 @@ option_dict = {
'restricted_softwaretype'
:
False
},
}
if
request
.
get
(
"software_type"
,
None
)
is
not
None
:
option_dict
[
'parameter'
][
'softwaretype'
]
=
request
.
get
(
"software_type"
,
None
)
if
request
.
get
(
"shared"
,
None
)
is
not
None
:
if
str
(
request
.
get
(
"shared"
,
""
)).
lower
()
in
[
'0'
,
'false'
]:
option_dict
[
'parameter'
][
'shared'
]
=
False
if
str
(
request
.
get
(
"shared"
,
""
)).
lower
()
in
[
'1'
,
'true'
]:
option_dict
[
'parameter'
][
'shared'
]
=
True
if
request
.
get
(
"restricted_softwaretype"
,
None
)
is
not
None
:
if
str
(
request
.
get
(
"restricted_softwaretype"
,
""
)).
lower
()
in
[
'0'
,
'false'
]:
option_dict
[
'parameter'
][
'restricted_softwaretype'
]
=
False
if
str
(
request
.
get
(
"restricted_softwaretype"
,
""
)).
lower
()
in
[
'1'
,
'true'
]:
option_dict
[
'parameter'
][
'restricted_softwaretype'
]
=
True
if
request
.
get
(
"parameter_hash"
,
None
)
is
not
None
:
option_dict
[
'parameter'
][
'parameter_hash'
]
=
request
.
get
(
"parameter_hash"
,
None
)
...
...
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