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
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
)
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,
),
$(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'