Skip to content
Snippets Groups Projects
Commit 06b37d62 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

WebUI component:

- removed unneeded log messages
parent 53d4143d
No related branches found
No related tags found
2 merge requests!54Release 2.0.0,!34Context Scalability extensions using CockroachDB + Removal of Stateful database inside Device + other
...@@ -58,11 +58,11 @@ def home(): ...@@ -58,11 +58,11 @@ def home():
contexts : ContextList = context_client.ListContexts(Empty()) contexts : ContextList = context_client.ListContexts(Empty())
for context_ in contexts.contexts: for context_ in contexts.contexts:
context_uuid : str = context_.context_id.context_uuid.uuid #context_uuid : str = context_.context_id.context_uuid.uuid
context_name : str = context_.name context_name : str = context_.name
topologies : TopologyList = context_client.ListTopologies(context_.context_id) topologies : TopologyList = context_client.ListTopologies(context_.context_id)
for topology_ in topologies.topologies: for topology_ in topologies.topologies:
topology_uuid : str = topology_.topology_id.topology_uuid.uuid #topology_uuid : str = topology_.topology_id.topology_uuid.uuid
topology_name : str = topology_.name topology_name : str = topology_.name
raw_values = context_name, topology_name raw_values = context_name, topology_name
b64_values = [base64.b64encode(v.encode('utf-8')).decode('utf-8') for v in raw_values] b64_values = [base64.b64encode(v.encode('utf-8')).decode('utf-8') for v in raw_values]
...@@ -75,9 +75,7 @@ def home(): ...@@ -75,9 +75,7 @@ def home():
context_topology_uuid = context_topology_form.context_topology.data context_topology_uuid = context_topology_form.context_topology.data
if len(context_topology_uuid) > 0: if len(context_topology_uuid) > 0:
b64_values = context_topology_uuid.split(',') b64_values = context_topology_uuid.split(',')
LOGGER.warning('b64_values={:s}'.format(str(b64_values)))
raw_values = [base64.b64decode(v.encode('utf-8')).decode('utf-8') for v in b64_values] raw_values = [base64.b64decode(v.encode('utf-8')).decode('utf-8') for v in b64_values]
LOGGER.warning('raw_values={:s}'.format(str(raw_values)))
context_name, topology_name = raw_values context_name, topology_name = raw_values
#session.clear() #session.clear()
session['context_topology_uuid'] = context_topology_uuid session['context_topology_uuid'] = context_topology_uuid
...@@ -85,7 +83,6 @@ def home(): ...@@ -85,7 +83,6 @@ def home():
#session['context_name'] = context_name #session['context_name'] = context_name
session['topology_uuid'] = topology_name session['topology_uuid'] = topology_name
#session['topology_name'] = topology_name #session['topology_name'] = topology_name
LOGGER.warning('session.items={:s}'.format(str(session.items())))
MSG = f'Context({context_name})/Topology({topology_name}) successfully selected.' MSG = f'Context({context_name})/Topology({topology_name}) successfully selected.'
flash(MSG, 'success') flash(MSG, 'success')
return redirect(url_for('main.home')) return redirect(url_for('main.home'))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment