use SliceList rather than SimpleList
[unfold.git] / trash / dashboard.py
index 35eeb33..8dc2dbe 100644 (file)
@@ -10,7 +10,7 @@ from django.contrib.auth.decorators import login_required
 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
@@ -28,19 +28,20 @@ def dashboard_view (request):
                                   # 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='Asynchroneous SimpleList',
+        title='Asynchroneous SliceList',
         header='slices list', 
         with_datatables=True,
         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