X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plugins%2Funivbrisfv%2F__init__.py;h=93653b9f9f8b77c8fad997f6471c16cd61f52154;hb=d651e8f12d326efb5185ecc28b760e8972b1e889;hp=a44a0ab7bd5dd999e381d7c82d61e4ee7e21f957;hpb=c934e61266ad5977ff1f305af6450ffebe141645;p=myslice.git diff --git a/plugins/univbrisfv/__init__.py b/plugins/univbrisfv/__init__.py index a44a0ab7..93653b9f 100644 --- a/plugins/univbrisfv/__init__.py +++ b/plugins/univbrisfv/__init__.py @@ -40,7 +40,7 @@ Current implementation makes the following assumptions as we use 'aoColumnDefs' instead. """ - def __init__ (self, query=None, query_all=None, + def __init__ (self, query=None, query_all=None, sync_query=None, checkboxes=False, columns=None, init_key=None, datatables_options={}, **settings): @@ -49,6 +49,7 @@ Current implementation makes the following assumptions # Until we have a proper way to access queries in Python self.query_all = query_all self.query_all_uuid = query_all.query_uuid if query_all else None + self.sync_query_uuid = sync_query.query_uuid if sync_query else None self.checkboxes = checkboxes # XXX We need to have some hidden columns until we properly handle dynamic queries if columns is not None: @@ -118,6 +119,6 @@ Current implementation makes the following assumptions # the list of things passed to the js plugin def json_settings_list (self): return ['plugin_uuid', 'domid', - 'query_uuid', 'query_all_uuid', + 'query_uuid', 'query_all_uuid', 'sync_query_uuid', 'checkboxes', 'datatables_options', 'hidden_columns', 'init_key',]