From: Ciro Scognamiglio Date: Tue, 2 Sep 2014 10:12:18 +0000 (+0200) Subject: small fixes X-Git-Tag: myslice-1.2~1^2~52 X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=commitdiff_plain;h=162d10080f64d024e77898979ded65ab7444dee8 small fixes --- diff --git a/portal/homeview.py b/portal/homeview.py index 7af47760..a3a145c4 100644 --- a/portal/homeview.py +++ b/portal/homeview.py @@ -115,14 +115,15 @@ class HomeView (FreeAccessView, ThemeView): # XXX Something like an invalid session seems to make the execute fail sometimes, and thus gives an error on the main page platform_details = execute_query(self.request, platform_query) account_details = execute_query(self.request, account_query) - for platform_detail in platform_details: - for account_detail in account_details: - if 'platform_id' in platform_detail: - if platform_detail['platform_id'] == account_detail['platform_id']: - if 'config' in account_detail and account_detail['config'] is not '': - account_config = json.loads(account_detail['config']) - if 'myslice' in platform_detail['platform']: - acc_auth_cred = account_config.get('delegated_authority_credentials','N/A') + if platform_detail is not None : + for platform_detail in platform_details: + for account_detail in account_details: + if 'platform_id' in platform_detail: + if platform_detail['platform_id'] == account_detail['platform_id']: + if 'config' in account_detail and account_detail['config'] is not '': + account_config = json.loads(account_detail['config']) + if 'myslice' in platform_detail['platform']: + acc_auth_cred = account_config.get('delegated_authority_credentials','N/A') # assigning values if acc_auth_cred=={} or acc_auth_cred=='N/A': pi = "is_not_pi" diff --git a/portal/templates/slice-tab-experiment.html b/portal/templates/slice-tab-experiment.html index 55b27531..1430dae6 100644 --- a/portal/templates/slice-tab-experiment.html +++ b/portal/templates/slice-tab-experiment.html @@ -22,7 +22,7 @@

NITOS resources are not directly accessible. You will need to log in on a gateway server and from there access the node. - The NITO server address is nitlab.inf.uth.gr, so to connect to the NITOS server: + The NITOS server address is nitlab.inf.uth.gr, so to connect to the NITOS server:

$ ssh your_slice_name@nitlab.inf.uth.gr