From: Loic Baron Date: Wed, 17 Jun 2015 13:01:40 +0000 (+0200) Subject: Tools tab: handle async Describe calls and gives a warning if no resources are reserv... X-Git-Tag: myslice-1.5~3 X-Git-Url: http://git.onelab.eu/?p=unfold.git;a=commitdiff_plain;h=fc05c86011929eaf180d3e597795f3fc19b0ae84 Tools tab: handle async Describe calls and gives a warning if no resources are reserved, also fixed the bug with session killed when initscript is Queried and PLE is not plugged in --- diff --git a/portal/slicetabexperiment.py b/portal/slicetabexperiment.py index 7ed6d31a..79471d25 100644 --- a/portal/slicetabexperiment.py +++ b/portal/slicetabexperiment.py @@ -34,6 +34,7 @@ class ExperimentView (FreeAccessView, ThemeView): pf_query = Query().get('local:platform').filter_by('disabled', '==', '0').filter_by('gateway_type', '==', 'sfa').select('platform') res_platforms = execute_query(request, pf_query) platforms = [p['platform'] for p in res_platforms] + len_platforms = len(platforms) #query_current_resources = Query.get('slice').select('resource','parent_authority').filter_by('slice_hrn','==',slicename) #current_resources = execute_query(request, query_current_resources) @@ -107,6 +108,7 @@ class ExperimentView (FreeAccessView, ThemeView): env = { 'theme' : self.theme, 'slicename':slicename, 'platforms':platforms, + 'len_platforms': len_platforms, #'ple_slicename':ple_slicename, #'username':username, #'ple_resources':ple_resource_list, diff --git a/portal/templates/slice-tab-experiment.html b/portal/templates/slice-tab-experiment.html index 0ca620aa..9673ad61 100644 --- a/portal/templates/slice-tab-experiment.html +++ b/portal/templates/slice-tab-experiment.html @@ -1,6 +1,16 @@
+{% endif %} +{% if "iotlab" in platforms %} +{% endif %} +{% if "nitos" in platforms %} - +{% endif %} +{% if "nitos-paris" in platforms %} @@ -153,6 +181,7 @@ $(document).ready(function() {

OMF based experiments' tutorials are available here.

To learn more about OMF, please click here.

+{% endif %}

Available Tools

SSH