X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fvalidationview.py;h=b5170b9b155f3892756abde42dfb041fff270a03;hb=d72f939ba81e7e561811045065fce0ea1265a31c;hp=23909b47a94232e52fb09958faf086e12795b90d;hpb=e2df3c64f7c2a819529b32a5da06d6ae5b17af7d;p=unfold.git diff --git a/portal/validationview.py b/portal/validationview.py index 23909b47..b5170b9b 100644 --- a/portal/validationview.py +++ b/portal/validationview.py @@ -41,11 +41,12 @@ from plugins.raw import Raw from portal.models import PendingUser, PendingSlice from portal.actions import get_requests -from manifold.manifoldapi import execute_query +from manifoldapi.manifoldapi import execute_query from manifold.core.query import Query from unfold.page import Page +from myslice.theme import ThemeView -class ValidatePendingView(FreeAccessView): +class ValidatePendingView(FreeAccessView, ThemeView): template_name = "validate_pending.html" def get_context_data(self, **kwargs): @@ -59,6 +60,7 @@ class ValidatePendingView(FreeAccessView): ctx_my_authorities = {} ctx_delegation_authorities = {} ctx_sub_authorities = {} + dest = {} # The user need to be logged in @@ -259,7 +261,9 @@ class ValidatePendingView(FreeAccessView): context['topmenu_items'] = topmenu_items_live('Validation', page) # so we can sho who is logged context['username'] = the_user(self.request) - + + context['theme'] = self.theme + context['section'] = "Requests" # XXX We need to prepare the page for queries #context.update(page.prelude_env())