add a method for grabbing plugin info

This commit is contained in:
Damien Churchill 2009-08-26 08:53:58 +00:00
parent 32ed499b2a
commit 6ca835314e
1 changed files with 6 additions and 2 deletions

View File

@ -693,7 +693,6 @@ class WebApi(JSONComponent):
del config["pwd_salt"]
del config["pwd_sha1"]
return config
@export
def set_config(self, config):
@ -707,4 +706,9 @@ class WebApi(JSONComponent):
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]
web_config[key] = config[key]
@export
def get_plugin_info(self, name):
return component.get("PluginManager").get_plugin_info(name)