X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Fhazelnut%2Fhazelnut.py;h=9dfebf11e48ff07c7800d90f7fa0c28b65533352;hb=e256853ef256809864927b91deb42e713baea769;hp=b69bcc93e05c57896391715b7cfe260ba3a71601;hpb=8bd7506149ec3e26a194fcc6e596781e0b399b0f;p=myslice.git diff --git a/plugins/hazelnut/hazelnut.py b/plugins/hazelnut/hazelnut.py index b69bcc93..9dfebf11 100644 --- a/plugins/hazelnut/hazelnut.py +++ b/plugins/hazelnut/hazelnut.py @@ -5,7 +5,7 @@ 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, **settings): + def __init__ (self, query, checkboxes=False, columns=None, datatables_options={}, **settings): Plugin.__init__ (self, **settings) self.query=query self.checkboxes=checkboxes @@ -13,6 +13,7 @@ class Hazelnut (Plugin): self.columns=columns else: self.columns=self.query.fields + self.datatables_options=datatables_options def template_file (self): return "hazelnut.html" @@ -38,4 +39,4 @@ class Hazelnut (Plugin): return reqs # the list of things passed to the js plugin - def json_settings_list (self): return ['plugin_uuid','query_uuid','checkboxes'] + def json_settings_list (self): return ['plugin_uuid', 'domid', 'query_uuid','checkboxes','datatables_options']