X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fviews.py;h=65d8ea0523d20ff67d589793ad214f061a7009d3;hb=83f3bc8abee6f1312ad9a0a24e63871fc1ee8b16;hp=60f161377c0a4357916dcff582f77e40042365b2;hpb=728d87eeacffb7af325a90721f05df3488f0a810;p=unfold.git diff --git a/portal/views.py b/portal/views.py index 60f16137..65d8ea05 100644 --- a/portal/views.py +++ b/portal/views.py @@ -28,7 +28,7 @@ from django.views.generic.base import TemplateView from django.shortcuts import render from django.template.loader import render_to_string -from myslice.viewutils import topmenu_items, the_user +from ui.topmenu import topmenu_items, the_user from portal.event import Event # presview is put in observation for now @@ -302,7 +302,7 @@ class ValidatePendingView(TemplateView): # ** Where am I a PI ** # For this we need to ask SFA (of all authorities) = PI function - pi_authorities_query = Query.get('user').filter_by('user_hrn', '==', '$user_hrn').select('pi_authorities') + pi_authorities_query = Query.get('ple:user').filter_by('user_hrn', '==', '$user_hrn').select('pi_authorities') pi_authorities_tmp = execute_query(self.request, pi_authorities_query) pi_authorities = set() for pa in pi_authorities_tmp: @@ -375,7 +375,7 @@ class ValidatePendingView(TemplateView): # more general variables expected in the template context['title'] = 'Test view that combines various plugins' # the menu items on the top - context['topmenu_items'] = topmenu_items('Dashboard', self.request) + context['topmenu_items'] = topmenu_items('Validation', self.request) # so we can sho who is logged context['username'] = the_user(self.request)