from engine.pluginset import PluginSet
from engine.manifoldquery import ManifoldQuery
-from plugins.simplelist import SimpleList
+from plugins.slicelist import SliceList
#
from myslice.viewutils import topmenu_items, the_user
-# from myslice.viewutils import hard_wired_slice_names, hard_wired_list, lorem_p, lorem, quickfilter_criterias
@login_required
def dashboard_view (request):
- pluginset = PluginSet()
+ pluginset = PluginSet(request)
slices_query = ManifoldQuery (action='get',
method='slice',
# xxx filter : should filter on the slices the logged user can see
# we don't have the user's hrn yet
# in addition this currently returns all slices anyways
+ # filter = ...
sort='slice_hrn',)
pluginset.enqueue_query (slices_query)
- main_plugin = SimpleList ( # setting visible attributes first
+ main_plugin = SliceList ( # setting visible attributes first
pluginset=pluginset,
- title='SimpleList and dataTables',
+ title='Asynchroneous SliceList',
header='slices list',
with_datatables=True,
- toggled=False,
+ toggled=True,
# this is required for the javascript code
query=slices_query,
- key='slice_hrn',
- value='slice_hrn',
+# key='slice_hrn',
+# value='slice_hrn',
)
# variables that will get passed to the view-plugin.html template
# 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