X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fsliceview.py;h=4037e753801eb9bf6ff722681e1144362155c6d5;hb=83f238a32f62a34370f24d69e85823c709d95627;hp=8461b1a6e7bcf21331b9fe70e3f46dc9994c62f4;hpb=83f3bc8abee6f1312ad9a0a24e63871fc1ee8b16;p=myslice.git diff --git a/portal/sliceview.py b/portal/sliceview.py index 8461b1a6..4037e753 100644 --- a/portal/sliceview.py +++ b/portal/sliceview.py @@ -11,7 +11,7 @@ from ui.topmenu import topmenu_items, the_user from plugins.raw import Raw from plugins.stack import Stack from plugins.tabs import Tabs -from plugins.hazelnut import Hazelnut +from plugins.querytable import QueryTable from plugins.resources_selected import ResourcesSelected from plugins.googlemap import GoogleMap from plugins.senslabmap import SensLabMap @@ -160,7 +160,7 @@ class SliceView (LoginRequiredAutoLogoutView): zoom = 4, ) - resources_as_list = Hazelnut( + resources_as_list = QueryTable( page = page, domid = 'resources-list', title = 'List view', @@ -175,7 +175,7 @@ class SliceView (LoginRequiredAutoLogoutView): }, ) - # with the new 'Filter' stuff on top, no need for anything but the hazelnut + # with the new 'Filter' stuff on top, no need for anything but the querytable resources_as_list_area = resources_as_list resources_area = Tabs ( page=page, @@ -202,7 +202,7 @@ class SliceView (LoginRequiredAutoLogoutView): ) main_stack.insert(tab_users) - tab_users.insert(Hazelnut( + tab_users.insert(QueryTable( page = page, title = 'Users List', domid = 'users-list', @@ -287,7 +287,7 @@ class SliceView (LoginRequiredAutoLogoutView): # ) # main_stack.insert(tab_measurements) # -# tab_measurements.insert(Hazelnut( +# tab_measurements.insert(QueryTable( # page = page, # title = 'Measurements', # domid = 'measurements-list', @@ -324,8 +324,8 @@ class SliceView (LoginRequiredAutoLogoutView): # variables that will get passed to the view-unfold1.html template template_env = {} - # define 'unfold1_main' to the template engine - the main contents - template_env [ 'unfold1_main' ] = main_stack.render(request) + # define 'unfold_main' to the template engine - the main contents + template_env [ 'unfold_main' ] = main_stack.render(request) # more general variables expected in the template template_env [ 'title' ] = '%(slicename)s'%locals()