X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=trash%2Fdashboard.py;h=35eeb336e3a48f562ddebcff4f6cb45e5de58578;hb=1b014c4b719598ec82ca0fd2b49443571fabcbb4;hp=246536eb4241c948b49283e47292ad7c9d4336a5;hpb=9b89a32f1ae0a1e0618a9cc11138a766a4ba870b;p=unfold.git diff --git a/trash/dashboard.py b/trash/dashboard.py index 246536eb..35eeb336 100644 --- a/trash/dashboard.py +++ b/trash/dashboard.py @@ -19,7 +19,7 @@ from myslice.viewutils import topmenu_items, the_user @login_required def dashboard_view (request): - pluginset = PluginSet() + pluginset = PluginSet(request) slices_query = ManifoldQuery (action='get', method='slice', @@ -29,13 +29,14 @@ def dashboard_view (request): # we don't have the user's hrn yet # in addition this currently returns all slices anyways sort='slice_hrn',) + pluginset.enqueue_query (slices_query) main_plugin = SimpleList ( # setting visible attributes first pluginset=pluginset, - title='SimpleList and dataTables', + title='Asynchroneous SimpleList', header='slices list', with_datatables=True, - toggled=False, + toggled=True, # this is required for the javascript code query=slices_query, key='slice_hrn', @@ -58,7 +59,7 @@ def dashboard_view (request): # template_env [ 'content_related' ] = related_plugin.render (request) # more general variables expected in the template - template_env [ 'title' ] = 'SimpleList Test View' + template_env [ 'title' ] = 'Test view for a full request cycle' # the menu items on the top template_env [ 'topmenu_items' ] = topmenu_items('dashboard', request) # so we can sho who is logged