updater now has the logic to turn itself off and back on (although for now only in...
[myslice.git] / trash / pluginview.py
index f9c9663..922096e 100644 (file)
@@ -14,6 +14,7 @@ from plugins.stack.stack import Stack
 from plugins.tabs.tabs import Tabs
 from plugins.lists.staticlist import StaticList
 from plugins.quickfilter.quickfilter import QuickFilter
+from plugins.querycode.querycode import QueryCode
 from plugins.raw.raw import Raw
 from plugins.messages.messages import Messages
 from plugins.hazelnut.hazelnut import Hazelnut
@@ -32,11 +33,12 @@ def test_plugin_view (request):
     
     slicename='ple.inria.omftest'
     main_query = ManifoldQuery (action='get',
-                                subject='resource',
+                                subject='slice',
                                 timestamp='latest',
                                 fields=['network','type','hrn','hostname'],
                                 filters= [ [ 'slice_hrn', '=', slicename, ] ],
                                 )
+    # don't run this one as nothing listens to this
     page.enqueue_query (main_query, run_it=False)
 
     main_plugin = \
@@ -45,21 +47,19 @@ def test_plugin_view (request):
         title='thestack',
         togglable=False,
         sons=[ \
-#            Hazelnut (page=page, 
-#                      query=main_query,
-#                      ),
-            Messages (
-                page=page,
-                title="Runtime messages",
-                domid="msgs-pre",
-                levels='ALL',
-                ),
             Updater (
                     page=page,
                     title="Update me",
                     query=main_query,
                     label="Update me",
+                    domid="the-updater",
                     ),
+            Messages (
+                page=page,
+                title="Runtime messages",
+                domid="msgs-pre",
+                levels='ALL',
+                ),
             ])
 
     # define 'unfold1_main' to the template engine