summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6e286d3)
plugins can turn their spinner on with on_query_progress
// Executes all async. queries - intended for the javascript header to initialize queries
// input queries are specified as a list of {'query_uuid': <query_uuid> }
// Executes all async. queries - intended for the javascript header to initialize queries
// input queries are specified as a list of {'query_uuid': <query_uuid> }
+ // each plugin is responsible for managing its spinner through on_query_in_progress
asynchroneous_exec : function (query_exec_tuples) {
asynchroneous_exec : function (query_exec_tuples) {
-// start spinners - be robust if the spin stuff was not loaded for any reason
-// turned off because each plugin is responsible for doing that through on_query_in_progress
-// try {
-// var subjects=$(".need-spin");
-// if (manifold.asynchroneous_debug) {
-// messages.debug("Turning on spin with " + subjects.length + " matches for .need-spin");
-// $.map (subjects, function (subject) { messages.debug("need-spin: "+ subject.id);});
-// }
-// subjects.spin(manifold.spin_presets);
-// } catch (err) { messages.debug("Cannot turn on spins " + err); }
// Loop through input array, and use publish_uuid to publish back results
$.each(query_exec_tuples, function(index, tuple) {
// Loop through input array, and use publish_uuid to publish back results
$.each(query_exec_tuples, function(index, tuple) {
def json_settings_list (self):
return [ 'plugin_uuid', 'levels' ]
def json_settings_list (self):
return [ 'plugin_uuid', 'levels' ]
- # and we don't need a spin wheel
- def start_with_spin (self):
- return False
}
def json_settings_list (self): return ['plugin_uuid','query_uuid']
}
def json_settings_list (self): return ['plugin_uuid','query_uuid']
-
- # because we have a link to a query it looks like we need a spin, let's make this right
- def start_with_spin (self): return False
def json_settings_list (self):
return ['plugin_uuid', 'domid', 'query_uuid']
def json_settings_list (self):
return ['plugin_uuid', 'domid', 'query_uuid']
- def export_json_settings (self):
- return True
def json_settings_list (self):
return []
def json_settings_list (self):
return []
- def export_json_settings(self):
- return True
def export_json_settings (self):
return 'query_uuid' in self.json_settings_list()
def export_json_settings (self):
return 'query_uuid' in self.json_settings_list()
- # by default we create a timer if there's a query attached, redefine to change this behaviour
- def start_with_spin (self):
- return self.export_json_settings()
-
# returns the html code for that plugin
# in essence, wraps the results of self.render_content ()
def render (self, request):
# returns the html code for that plugin
# in essence, wraps the results of self.render_content ()
def render (self, request):
# shove this into plugin.html
env = {}
env ['plugin_content']= plugin_content
# shove this into plugin.html
env = {}
env ['plugin_content']= plugin_content
- # need_spin is used in plugin.html
- self.need_spin=self.start_with_spin()
env.update(self.__dict__)
# translate high-level 'toggled' into 4 different booleans
self.need_toggle = False
env.update(self.__dict__)
# translate high-level 'toggled' into 4 different booleans
self.need_toggle = False
#
# whether we export the json settings to js
# def export_json_settings (self)
#
# whether we export the json settings to js
# def export_json_settings (self)
- #
- # whether we show an initial spinner
- # def start_with_spin (self)
-<div id='complete-{{ domid }}' class='{% if need_toggle %}plugin-toggle{% endif %}{% if need_spin %} need-spin{% endif %}{% if persistent_toggle %} persistent-toggle{% endif %}{% if outline_complete %} plugin-outline-complete{% endif %}'>
+<div id='complete-{{ domid }}' class='{% if need_toggle %}plugin-toggle{% endif %}{% if persistent_toggle %} persistent-toggle{% endif %}{% if outline_complete %} plugin-outline-complete{% endif %}'>
{% if togglable %}
<h4 id='show-{{ domid }}' class='plugin-show'{% if not display_show_button %} style='display:none;'{% endif %}>
<span class="glyphicon glyphicon-chevron-right"></span>
{% if togglable %}
<h4 id='show-{{ domid }}' class='plugin-show'{% if not display_show_button %} style='display:none;'{% endif %}>
<span class="glyphicon glyphicon-chevron-right"></span>