X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fviews.py;h=167f324e2dc5f678e337722218f732dc88cd3869;hb=c025814eadebf386f556f9af571d3f04e2124a80;hp=deb4fadbb429f72f0e763649c0774d89c6a70448;hpb=995713033d9d1c87eb51cdcac1cd7f61d9cbe0d7;p=myslice.git diff --git a/portal/views.py b/portal/views.py index deb4fadb..167f324e 100644 --- a/portal/views.py +++ b/portal/views.py @@ -24,10 +24,10 @@ import json from django.http import HttpResponseRedirect, HttpResponse -from django.views.generic.base import TemplateView from django.shortcuts import render from django.template.loader import render_to_string +from unfold.loginrequired import FreeAccessView from ui.topmenu import topmenu_items, the_user from portal.event import Event @@ -49,7 +49,7 @@ from unfold.page import Page # all the other ones have now migrated into separate classes/files for more convenience # I'm leaving these ones here for now as I could not exactly figure what the purpose was # (i.e. what the correct name should be, as presviewview was a bit cryptic) -class PresViewView(TemplateView): +class PresViewView(FreeAccessView): template_name = "view-unfold1.html" def get_context_data(self, **kwargs): @@ -222,7 +222,7 @@ def pres_view_static(request, constraints, id): json_answer = json.dumps(cmd) return HttpResponse (json_answer, mimetype="application/json") -class ValidatePendingView(TemplateView): +class ValidatePendingView(FreeAccessView): template_name = "validate_pending.html" def get_context_data(self, **kwargs):