X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fhomeview.py;h=b6af0644e4baa0c4d5ffa58241052866f737c516;hb=194f64e52b806bafa5a5e0ed2940b94a462fe87e;hp=0be0105c21e21bdaca5c0f37190002a846088000;hpb=d4fc2d235475cfd6f536e7cd584aa8524d02b242;p=unfold.git diff --git a/portal/homeview.py b/portal/homeview.py index 0be0105c..b6af0644 100644 --- a/portal/homeview.py +++ b/portal/homeview.py @@ -1,21 +1,23 @@ # this somehow is not used anymore - should it not be ? -from django.views.generic import View from django.core.context_processors import csrf from django.http import HttpResponseRedirect from django.contrib.auth import authenticate, login, logout from django.template import RequestContext from django.shortcuts import render_to_response +from unfold.loginrequired import FreeAccessView + from manifold.manifoldresult import ManifoldResult from ui.topmenu import topmenu_items, the_user from myslice.config import Config -class HomeView (View): +class HomeView (FreeAccessView): # expose this so we can mention the backend URL on the welcome page def default_env (self): + config=Config() return { - 'MANIFOLD_URL':Config.manifold_url(), + 'MANIFOLD_URL':config.manifold_url(), } def post (self,request):