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 plugins.pres_view import PresView
from portal.event import Event
+# presview is put in observation for now
+#from plugins.pres_view import PresView
+from plugins.raw import Raw
# these seem totally unused for now
#from portal.util import RegistrationView, ActivationView
page = Page(self.request)
- pres_view = PresView(page = page)
+# pres_view = PresView(page = page)
+ pres_view = Raw(page = page,html="<h1>PresView needs to be integrated</h1>")
context = super(PresViewView, self).get_context_data(**kwargs)
# ** 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:
# 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)