AiC and REST login
[myslice.git] / sample / pluginview.py
index f200312..bef0768 100644 (file)
@@ -19,8 +19,8 @@ from plugins.raw                        import Raw
 from plugins.messages                   import Messages
 from plugins.querytable                 import QueryTable
 
-from ui.topmenu                         import topmenu_items, the_user
-from trash.trashutils                   import hard_wired_slice_names, hard_wired_list, lorem_p, lorem, quickfilter_criterias
+from ui.topmenu                         import topmenu_items_live, the_user
+from trashutils                         import hard_wired_slice_names, hard_wired_list, lorem_p, lorem, quickfilter_criterias
 
 #might be useful or not depending on the context
 #@login_required
@@ -89,12 +89,9 @@ $(function(){$("#bouton").click(issue_debug);});
 
     # more general variables expected in the template
     template_env [ 'title' ] = 'Single Plugin View' 
-    template_env [ 'topmenu_items' ] = topmenu_items('plugin', request
+    template_env [ 'topmenu_items' ] = topmenu_items_live('plugin', page
     template_env [ 'username' ] = the_user (request) 
 
-    # run queries when we have any
-    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()