Author: damoxc
Revision: 5705
Log:
add a method for grabbing plugin info
Diff:
Modified: trunk/deluge/ui/web/json_api.py
===================================================================
--- trunk/deluge/ui/web/json_api.py 2009-08-24 22:13:54 UTC (rev 5704)
+++ trunk/deluge/ui/web/json_api.py 2009-08-26 08:53:58 UTC (rev 5705)
@@ -693,7 +693,6 @@
del config["pwd_salt"]
del config["pwd_sha1"]
return config
-
@export
def set_config(self, config):
@@ -707,4 +706,9 @@
for key in config.keys():
if isinstance(config[key], unicode) or isinstance(config[key],
str):
config[key] = config[key].encode("utf8")
- web_config[key] = config[key]
\ No newline at end of file
+ web_config[key] = config[key]
+
+ @export
+ def get_plugin_info(self, name):
+ return component.get("PluginManager").get_plugin_info(name)
+
\ No newline at end of file
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---