X-Git-Url: http://git.onelab.eu/?p=myslice.git;a=blobdiff_plain;f=plugins%2Fquerygrid%2F__init__.py;fp=plugins%2Fquerytable%2F__init__.py;h=5b0c4662b674b77b31e04a39cc5d6ed544f54c4f;hp=de7fcbcc82fac6e635d543e950c1918fec267501;hb=40f9d1dce826cc4fb4a22186c0947d8461a5f0b7;hpb=8c82aaebbe810904dd985aacf92ebc9eab3fd5f5 diff --git a/plugins/querytable/__init__.py b/plugins/querygrid/__init__.py similarity index 95% rename from plugins/querytable/__init__.py rename to plugins/querygrid/__init__.py index de7fcbcc..5b0c4662 100644 --- a/plugins/querytable/__init__.py +++ b/plugins/querygrid/__init__.py @@ -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 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",