X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=trash%2Fsimplegridview.py;fp=trash%2Fsimpleview.py;h=f0f23913a1e3c6b3ed25f3b7a271e2ccdcfacc26;hb=40f9d1dce826cc4fb4a22186c0947d8461a5f0b7;hp=62150ebf9bfaaa3f1b2622be29ba344176323892;hpb=8c82aaebbe810904dd985aacf92ebc9eab3fd5f5;p=unfold.git diff --git a/trash/simpleview.py b/trash/simplegridview.py similarity index 92% rename from trash/simpleview.py rename to trash/simplegridview.py index 62150ebf..f0f23913 100644 --- a/trash/simpleview.py +++ b/trash/simplegridview.py @@ -1,4 +1,4 @@ -# just one instance of QueryTable, nothing more, nothing less +# just one instance of QueryGrid, nothing more, nothing less from django.views.generic.base import TemplateView from django.template import RequestContext from django.shortcuts import render_to_response @@ -9,9 +9,9 @@ from unfold.page import Page from ui.topmenu import topmenu_items, the_user -from plugins.querytable import QueryTable +from plugins.querygrid import QueryGrid -class SimpleView (TemplateView): +class SimpleGridView (TemplateView): def get (self, request, slicename='ple.inria.f14'): @@ -30,7 +30,7 @@ class SimpleView (TemplateView): 'user.user_hrn', #'application.measurement_point.counter' ) - # for internal use in the querytable plugin; + # for internal use in the querygrid plugin; # needs to be a unique column present for each returned record main_query_key = 'hrn' @@ -42,7 +42,7 @@ class SimpleView (TemplateView): sq_resource = aq.subquery('resource') - resources_as_list = QueryTable( + resources_as_list = QueryGrid( page = page, domid = 'resources-list', title = 'List view',