X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fvalidationview.py;h=e0f4ab1baacf5b6ae36d6d649a0f2e22beeb0c1d;hb=e187276bb5da1d4e7195fd9aea066ae3b34b2df4;hp=23909b47a94232e52fb09958faf086e12795b90d;hpb=e2df3c64f7c2a819529b32a5da06d6ae5b17af7d;p=unfold.git diff --git a/portal/validationview.py b/portal/validationview.py index 23909b47..e0f4ab1b 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 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,8 @@ 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 # XXX We need to prepare the page for queries #context.update(page.prelude_env())