1 from unfold.plugin import Plugin
2 from plugins.queryupdater import QueryUpdaterPlugin
4 class ApplyPlugin(Plugin):
6 def __init__ (self, query=None, **settings):
7 Plugin.__init__ (self, **settings)
9 self.username = str(settings['username'])
11 def template_file (self):
14 # def template_env(self, request):
15 # query_updater = QueryUpdaterPlugin(
17 # title = 'Pending operations',
20 # # start turned off, it will open up itself when stuff comes in
23 # outline_complete = True,
24 # username = request.user, # XXX ???
27 # env = Plugin.template_env(self, request)
28 # env.update({'query_updater': query_updater.render(request)})
31 def requirements (self):
38 'css/dataTables.bootstrap.css',
44 def json_settings_list (self):
45 # query_uuid will pass self.query results to the javascript
46 # and will be available as "record" in :
47 # on_new_record: function(record)
48 return ['plugin_uuid', 'domid', 'query_uuid', 'username']
50 def export_json_settings (self):