it's nicer if tabs sons are not togglable
[unfold.git] / trash / sliceview.py
index 9b97b7a..2b83e66 100644 (file)
@@ -29,15 +29,14 @@ def slice_view (request, slicename=tmp_default_slice):
     main_query = ManifoldQuery (action='get',
                                 subject='resource',
                                 timestamp='latest',
-                                fields=['hrn','hostname'],
+                                fields=['network','type','hrn','hostname'],
                                 filters= [ [ 'slice_hrn', '=', slicename, ] ],
-                                sort='slice_hrn',
                                 )
     page.enqueue_query (main_query)
 
     main_plugin = Stack (
         page=page,
-        title="global container",
+        title="Slice view for %s"%slicename,
         domid='thestack',
 #        togglable=False,
         sons=[Tabs (
@@ -51,7 +50,7 @@ def slice_view (request, slicename=tmp_default_slice):
                         page=page,
                         title='a sample and simple hazelnut',
                         domid='simple',
-#                        togglable=False,
+                        togglable=False,
                         # this is the query at the core of the slice list
                         query=main_query,
                         ),
@@ -59,7 +58,7 @@ def slice_view (request, slicename=tmp_default_slice):
                         page=page,
                         title='with checkboxes',
                         domid='checkboxes',
-#                        togglable=False,
+                        togglable=False,
                         checkboxes=True,
                         # this is the query at the core of the slice list
                         query=main_query,