fixed hazelnut checkbox management
[myslice.git] / plugins / hazelnut / hazelnut.py
index 9dfebf1..fa8fae5 100644 (file)
@@ -5,9 +5,10 @@ class Hazelnut (Plugin):
     # set checkboxes if a final column with checkboxes is desired
     # pass columns as the initial set of columns
     #   if None then this is taken from the query's fields
-    def __init__ (self, query, checkboxes=False, columns=None, datatables_options={}, **settings):
+    def __init__ (self, query, query_all_uuid=None, checkboxes=False, columns=None, datatables_options={}, **settings):
         Plugin.__init__ (self, **settings)
-        self.query=query
+        self.query          = query
+        self.query_all_uuid = query_all_uuid
         self.checkboxes=checkboxes
         if columns is not None:
             self.columns=columns
@@ -39,4 +40,5 @@ class Hazelnut (Plugin):
         return reqs
 
     # the list of things passed to the js plugin
-    def json_settings_list (self): return ['plugin_uuid', 'domid', 'query_uuid','checkboxes','datatables_options']
+    def json_settings_list (self):
+        return ['plugin_uuid', 'domid', 'query_uuid', 'query_all_uuid', 'checkboxes','datatables_options']