Commit 9ebfcd34 authored by Daniele Venzano's avatar Daniele Venzano
Browse files

Labels can now be added to the ZApp manifest in the ZApp shop

These labels will be copied to all services when the ZApp is started
parent 59018bb6
......@@ -34,7 +34,7 @@ class BaseAuthenticator:
def __init__(self):
self.state = SQLManager(get_conf())
def full_auth(self, username, password) -> Union[None, User]: # pylint: disable=too-many-return-statements
def full_auth(self, username: str, password: str) -> Union[None, User]: # pylint: disable=too-many-return-statements
"""This method verifies the username and the password against one of the external auth sources."""
user =, **{"username": username})
if user is None or not user.enabled:
......@@ -96,6 +96,8 @@ class ZAppStartWeb(ZoeWebRequestHandler):
exec_name = self.get_argument('exec_name')
app_descr = self._set_parameters(zapp.zoe_description, zapp.parameters, self.current_user.role)
for service in app_descr['services']:
......@@ -59,6 +59,10 @@ class ZApp:
self.readable_description = self.read_description()
self.json_file = zapp['description']
self.zoe_description = self.parse_json_description()
if 'labels' in zapp:
self.labels = zapp['labels']
self.labels = []
self.parameters = []
if 'guest_access' in zapp:
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