- 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):
checkboxes=False, columns=None,
init_key=None,
datatables_options={}, **settings):
# 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
# 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.checkboxes = checkboxes
# XXX We need to have some hidden columns until we properly handle dynamic queries
if columns is not None:
self.checkboxes = checkboxes
# XXX We need to have some hidden columns until we properly handle dynamic queries
if columns is not None:
# the list of things passed to the js plugin
def json_settings_list (self):
return ['plugin_uuid', 'domid',
# the list of things passed to the js plugin
def json_settings_list (self):
return ['plugin_uuid', 'domid',
'checkboxes', 'datatables_options',
'hidden_columns', 'init_key',]
'checkboxes', 'datatables_options',
'hidden_columns', 'init_key',]