updated registration and validation
[myslice.git] / portal / validationview.py
index 23909b4..43b34e5 100644 (file)
@@ -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,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
+        
         # XXX We need to prepare the page for queries
         #context.update(page.prelude_env())