X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sample%2Fquerytableview.py;h=25cb6a0504c897569fce652227726f9e83ce5445;hb=4b6622264b59de3edb433a1f886faa2069a11960;hp=2e08abc8b12c81b919f40b7c5938a3f2aed90b8d;hpb=04ea5e29850e650e370b7815c491f3538b442d9e;p=myslice.git diff --git a/sample/querytableview.py b/sample/querytableview.py index 2e08abc8..25cb6a05 100644 --- a/sample/querytableview.py +++ b/sample/querytableview.py @@ -7,7 +7,7 @@ from manifold.core.query import Query, AnalyzedQuery from unfold.page import Page -from ui.topmenu import topmenu_items, the_user +from ui.topmenu import topmenu_items_live, the_user from plugins.querytable import QueryTable @@ -68,13 +68,10 @@ class QueryTableView (TemplateView): # more general variables expected in the template template_env [ 'title' ] = 'simple %(slicename)s'%locals() # the menu items on the top - template_env [ 'topmenu_items' ] = topmenu_items('Slice', request) + template_env [ 'topmenu_items' ] = topmenu_items_live('Slice', page) # so we can sho who is logged template_env [ 'username' ] = the_user (request) - # don't forget to run the requests - page.expose_queries () - # the prelude object in page contains a summary of the requirements() for all plugins # define {js,css}_{files,chunks} prelude_env = page.prelude_env()