git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
plugins: migrated hazelnut and googlemaps to the new plugin class, updated plugin...
[myslice.git]
/
plugins
/
updater
/
updater.py
diff --git
a/plugins/updater/updater.py
b/plugins/updater/updater.py
index
f04afc2
..
2f68b41
100644
(file)
--- a/
plugins/updater/updater.py
+++ b/
plugins/updater/updater.py
@@
-4,8
+4,8
@@
class Updater (Plugin):
def __init__ (self, query, label="Update", **settings):
Plugin.__init__ (self, **settings)
def __init__ (self, query, label="Update", **settings):
Plugin.__init__ (self, **settings)
- # xxx would make sense to check this is a Get query...
self.query=query
self.query=query
+ if query.action != "get": print "Updater on non-get query: ",query.action
self.label=label
def template_file (self):
self.label=label
def template_file (self):
@@
-23,7
+23,7
@@
class Updater (Plugin):
# although this has no query, we need a plugin instance to be created in the js output
def export_json_settings (self): return True
# the js plugin expects a domid
# although this has no query, we need a plugin instance to be created in the js output
def export_json_settings (self): return True
# the js plugin expects a domid
- def json_settings_list (self): return [ 'plugin_uuid', 'query_uuid' ]
+ def json_settings_list (self): return [ 'plugin_uuid', 'query_uuid'
,
]
# and we don't need a spin wheel
def start_with_spin (self): return False
# and we don't need a spin wheel
def start_with_spin (self): return False