X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=trash%2Fdashboard.py;h=ef8639fe773e62446de78e3ea4c12f2ea198b28c;hb=328c05636b6ff60608480ed8f3c2e1f4dae1f371;hp=c61c6e7646782a0d5eceac91dae85f1b99a566b4;hpb=c134d1d22720a181f26a0ba7219abc8758b575a1;p=myslice.git diff --git a/trash/dashboard.py b/trash/dashboard.py index c61c6e76..ef8639fe 100644 --- a/trash/dashboard.py +++ b/trash/dashboard.py @@ -10,7 +10,9 @@ from django.contrib.auth.decorators import login_required from engine.page import Page from engine.manifoldquery import ManifoldQuery +from plugins.verticallayout import VerticalLayout from plugins.slicelist import SliceList +from plugins.querycode import QueryCode # from myslice.viewutils import topmenu_items, the_user @@ -31,15 +33,25 @@ def dashboard_view (request): sort='slice_hrn',) page.enqueue_query (slices_query) - main_plugin = SliceList ( # setting visible attributes first + main_plugin = VerticalLayout ( page=page, - title='Asynchroneous SliceList', - header='slices list', - with_datatables=False, - toggled=True, - # this is the query at the core of the slice list - query=slices_query, - ) + title="Putting stuff together", + sons=[ + SliceList ( # setting visible attributes first + page=page, + title='Asynchroneous SliceList', + header='slices list', + with_datatables=False, + toggled=False, + # this is the query at the core of the slice list + query=slices_query, + ), + QueryCode ( + page=page, + title="Vizualize your query", + query=slices_query, + ), + ]) # variables that will get passed to the view-plugin.html template template_env = {}