Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simone Rossi
main
Commits
47cab492
Commit
47cab492
authored
Sep 19, 2018
by
Daniele Venzano
Browse files
Update documentation regarding ZApp access filtering in the zapp shop
parent
4f7dba4c
Changes
3
Hide whitespace changes
Inline
Side-by-side
contrib/zapp-shop-sample/pydatasci/manifest.json
View file @
47cab492
...
...
@@ -6,8 +6,7 @@
"readable_descr"
:
"README-datascience.md"
,
"name"
:
"Data science notebook"
,
"description"
:
"pydatasci.json"
,
"parameters"
:
[],
"guest_access"
:
true
"parameters"
:
[]
},
{
"category"
:
"Data science"
,
...
...
@@ -23,8 +22,7 @@
"type"
:
"string"
,
"default"
:
"all"
}
],
"guest_access"
:
false
]
}
]
}
...
...
docs/install.rst
View file @
47cab492
...
...
@@ -180,7 +180,7 @@ The ``manifest.json`` file gather all this information together for the ZApp Sho
"default": "./my-tf-app/main.py"
}
],
"
guest_access": true
"
disabled_for": ["role_A"]
}
]
}
...
...
@@ -195,7 +195,7 @@ For each ZApp:
* description : the name of the json file with the Zoe description
* readable_descr : the name of the markdown file containing user documentation for the ZApp
* parameters : a list of parameters the user can set to tune the ZApp before starting it
*
guest_access
(optional) :
if true the ZApp is visible to gues
t
u
se
rs, default is false
*
disabled_for
(optional) :
list of roles that will no
t se
e this ZApp in the app shop
Parameters:
...
...
zoe_api/zapp_shop.py
View file @
47cab492
...
...
@@ -65,10 +65,6 @@ class ZApp:
self
.
labels
=
[]
self
.
parameters
=
[]
self
.
parse_parameters
(
zapp
)
if
'guest_access'
in
zapp
:
self
.
guest_access
=
zapp
[
'guest_access'
]
else
:
self
.
guest_access
=
False
if
'logo'
in
zapp
:
self
.
logo
=
zapp
[
'logo'
]
else
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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