Author: damoxc
Revision: 5759
Log:
add a method that returns both the available and enabled plugins to
reduce the number of AJAX calls required
Diff:
Modified: trunk/deluge/ui/web/json_api.py
===================================================================
--- trunk/deluge/ui/web/json_api.py 2009-09-16 09:38:17 UTC (rev 5758)
+++ trunk/deluge/ui/web/json_api.py 2009-09-16 09:38:46 UTC (rev 5759)
@@ -782,6 +782,13 @@
web_config[key] = config[key]
@export
+ def get_plugins(self):
+ return {
+ "enabled_plugins":
component.get("Web.PluginManager").plugins.keys(),
+ "available_plugins":
component.get("Web.PluginManager").available_plugins
+ }
+
+ @export
def get_plugin_info(self, name):
return component.get("Web.PluginManager").get_plugin_info(name)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---