fixed GUI
[myslice.git] / sample / dashboardview.py
index f4bde8f..994164d 100644 (file)
@@ -9,17 +9,16 @@ from django.contrib.auth.decorators import login_required
 
 from unfold.page import Page
 from manifold.core.query import Query
 
 from unfold.page import Page
 from manifold.core.query import Query
-#from manifold.manifoldquery import ManifoldQuery
 
 from plugins.stack import Stack
 from plugins.lists.slicelist import SliceList
 from plugins.querycode import QueryCode
 from plugins.quickfilter import QuickFilter
 
 
 from plugins.stack import Stack
 from plugins.lists.slicelist import SliceList
 from plugins.querycode import QueryCode
 from plugins.quickfilter import QuickFilter
 
-from trash.trashutils import quickfilter_criterias
+from trashutils import quickfilter_criterias
 
 # 
 
 # 
-from ui.topmenu import topmenu_items, the_user
+from ui.topmenu import topmenu_items_live, the_user
 
 @login_required
 def dashboard_view (request):
 
 @login_required
 def dashboard_view (request):
@@ -71,7 +70,7 @@ def dashboard_view (request):
     # more general variables expected in the template
     template_env [ 'title' ] = 'Test view for a full request cycle'
     # the menu items on the top 
     # more general variables expected in the template
     template_env [ 'title' ] = 'Test view for a full request cycle'
     # the menu items on the top 
-    template_env [ 'topmenu_items' ] = topmenu_items('dashboard', request
+    template_env [ 'topmenu_items' ] = topmenu_items_live('dashboard', page
     # so we can sho who is logged
     template_env [ 'username' ] = the_user (request) 
 
     # so we can sho who is logged
     template_env [ 'username' ] = the_user (request) 
 
@@ -92,12 +91,6 @@ def dashboard_view (request):
     # add our own css in the mix
     #page.add_css_files ( 'css/dashboard.css')
     
     # add our own css in the mix
     #page.add_css_files ( 'css/dashboard.css')
     
-    # don't forget to run the requests
-    page.expose_queries ()
-
-    # xxx create another plugin with the same query and a different layout (with_datatables)
-    # show that it worls as expected, one single api call to backend and 2 refreshed views
-
     # the prelude object in page contains a summary of the requirements() for all plugins
     # define {js,css}_{files,chunks}
     prelude_env = page.prelude_env()
     # the prelude object in page contains a summary of the requirements() for all plugins
     # define {js,css}_{files,chunks}
     prelude_env = page.prelude_env()