X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sample%2Fdashboardview.py;h=1f68cc66a5d719957ec27f3a364039df104d418a;hb=dc85c90ae585a11d616330f0180c974f5b35072d;hp=947c79d490a816641942a827b7f224946d149be6;hpb=558ebc92df5b77d9ca546de531a36efb90ae1569;p=myslice.git diff --git a/sample/dashboardview.py b/sample/dashboardview.py index 947c79d4..1f68cc66 100644 --- a/sample/dashboardview.py +++ b/sample/dashboardview.py @@ -9,7 +9,6 @@ from django.contrib.auth.decorators import login_required from unfold.page import Page from manifold.core.query import Query -#from manifold.manifoldquery import ManifoldQuery from plugins.stack import Stack from plugins.lists.slicelist import SliceList @@ -19,7 +18,7 @@ from plugins.quickfilter import QuickFilter from trash.trashutils import quickfilter_criterias # -from ui.topmenu import topmenu_items, the_user +from ui.topmenu import topmenu_items_live, the_user @login_required def dashboard_view (request): @@ -71,7 +70,7 @@ def dashboard_view (request): # more general variables expected in the template template_env [ 'title' ] = 'Test view for a full request cycle' # the menu items on the top - template_env [ 'topmenu_items' ] = topmenu_items('dashboard', request) + template_env [ 'topmenu_items' ] = topmenu_items_live('dashboard', page) # so we can sho who is logged template_env [ 'username' ] = the_user (request)