X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fhomeview.py;h=d46ed651cb464b9f1d6926f867e101a493af9022;hb=a29926e4eacdc0f9b4b3954a4305f20d3dcac250;hp=029dc316778c293b927633b8b7c718743703c1fb;hpb=7be57c9d8e23d9829bc54bc98ec74b8345786b7a;p=unfold.git diff --git a/portal/homeview.py b/portal/homeview.py index 029dc316..d46ed651 100644 --- a/portal/homeview.py +++ b/portal/homeview.py @@ -75,7 +75,7 @@ class HomeView (FreeAccessView, ThemeView): if 'myslice' in platform_detail['platform']: acc_auth_cred = account_config.get('delegated_authority_credentials','N/A') # assigning values - if acc_auth_cred == {}: + if acc_auth_cred=={} or acc_auth_cred=='N/A': pi = "is_not_pi" else: pi = "is_pi" @@ -111,7 +111,7 @@ class HomeView (FreeAccessView, ThemeView): if 'myslice' in platform_detail['platform']: acc_auth_cred = account_config.get('delegated_authority_credentials','N/A') # assigning values - if acc_auth_cred == {}: + if acc_auth_cred=={} or acc_auth_cred=='N/A': pi = "is_not_pi" else: pi = "is_pi"