X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=trash%2Fpluginview.py;h=f2003127b213e36949c09841ce434b4f8db4ecc2;hb=83f238a32f62a34370f24d69e85823c709d95627;hp=0b22e119eead778de81c003571b79febd8ace139;hpb=33685b5e51564e1d4d61f32b2ab6be45436fb692;p=myslice.git diff --git a/trash/pluginview.py b/trash/pluginview.py index 0b22e119..f2003127 100644 --- a/trash/pluginview.py +++ b/trash/pluginview.py @@ -17,7 +17,7 @@ from plugins.quickfilter import QuickFilter from plugins.querycode import QueryCode from plugins.raw import Raw from plugins.messages import Messages -from plugins.hazelnut import Hazelnut +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 @@ -35,7 +35,7 @@ def test_plugin_view (request): slicename='ple.inria.heartbeat' main_query = Query.get('resource').filter_by('slice_hrn', '=', slicename).select(['network','type','hrn','hostname','sliver']) - # without an hazelnut, this would use use : run_it=False as nothing would listen to the results + # without an querytable, this would use use : run_it=False as nothing would listen to the results page.enqueue_query (main_query, # run_it=False ) @@ -53,11 +53,11 @@ def test_plugin_view (request): domid="messages-transient", levels='ALL', ), - Hazelnut ( + QueryTable ( page=page, title="Slice %s - checkboxes"%slicename, query=main_query, - domid="hazelnut", + domid="querytable", checkboxes=True, togglable=True, ), @@ -84,8 +84,8 @@ function issue_debug() {console.log("issue_debug");messages.debug("issue_debug") $(function(){$("#bouton").click(issue_debug);}); """) - # define 'unfold1_main' to the template engine - template_env [ 'unfold1_main' ] = main_plugin.render(request) + # define 'unfold_main' to the template engine + template_env [ 'unfold_main' ] = main_plugin.render(request) # more general variables expected in the template template_env [ 'title' ] = 'Single Plugin View'