X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=trash%2Fpluginview.py;h=f2003127b213e36949c09841ce434b4f8db4ecc2;hb=83f238a32f62a34370f24d69e85823c709d95627;hp=366c13106e4cd1fd00a1e46d0a724237884d4827;hpb=2662077238ac9a2087a444093d1d5ba446f45c16;p=myslice.git diff --git a/trash/pluginview.py b/trash/pluginview.py index 366c1310..f2003127 100644 --- a/trash/pluginview.py +++ b/trash/pluginview.py @@ -17,10 +17,10 @@ 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 myslice.viewutils 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, the_user +from trash.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 @@ -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'