rename querytable as querygrid
[myslice.git] / plugins / querygrid / __init__.py
similarity index 95%
rename from plugins/querytable/__init__.py
rename to plugins/querygrid/__init__.py
index de7fcbc..5b0c466 100644 (file)
@@ -1,6 +1,6 @@
 from unfold.plugin import Plugin
 
-class QueryTable (Plugin):
+class QueryGrid (Plugin):
 
     """A plugin for displaying a query as a list
 
@@ -67,16 +67,16 @@ Current implementation makes the following assumptions
         if self.checkboxes:
             # we use aoColumnDefs rather than aoColumns -- ignore user-provided aoColumns
             if 'aoColumns' in self.datatables_options:
-                print 'WARNING: querytable uses aoColumnDefs, your aoColumns spec. is discarded'
+                print 'WARNING: querygrid uses aoColumnDefs, your aoColumns spec. is discarded'
                 del self.datatables_options['aoColumns']
             # set aoColumnDefs in datatables_options - might already have stuff in there
             aoColumnDefs = self.datatables_options.setdefault ('aoColumnDefs',[])
             # here 'checkbox' is the class that we give to the <th> dom elem
-            # dom-checkbox is a sorting type that we define in querytable.js
+            # dom-checkbox is a sorting type that we define in querygrid.js
             aoColumnDefs.append ( {'aTargets': ['checkbox'], 'sSortDataType': 'dom-checkbox' } )
 
     def template_file (self):
-        return "querytable.html"
+        return "querygrid.html"
 
     def template_env (self, request):
         env={}
@@ -111,16 +111,16 @@ Current implementation makes the following assumptions
 #                "js/dataTables.js", "js/dataTables.bootstrap.js", "js/with-datatables.js",
                 "js/manifold.js", "js/manifold-query.js", 
                 "js/unfold-helper.js",
-                # querytable.js needs to be loaded after dataTables.js as it extends 
+                # querygrid.js needs to be loaded after dataTables.js as it extends 
                 # dataTableExt.afnSortData
-                "js/querytable.js", 
+                "js/querygrid.js", 
                 ] ,
             'css_files': [ 
 #                "css/dataTables.bootstrap.css",
                 # hopefully temporary, when/if datatables supports sPaginationType=bootstrap3
                 # for now we use full_numbers, with our own ad hoc css 
 #                "css/dataTables.full_numbers.css",
-                "css/querytable.css" , 
+                "css/querygrid.css" , 
                 "http://mleibman.github.io/SlickGrid/slick.grid.css",
 #                "http://mleibman.github.io/SlickGrid/css/smoothness/jquery-ui-1.8.16.custom.css",
 #                "http://mleibman.github.io/SlickGrid/examples/examples.css",