add a method for grabbing plugin info
This commit is contained in:
parent
32ed499b2a
commit
6ca835314e
|
@ -694,7 +694,6 @@ class WebApi(JSONComponent):
|
||||||
del config["pwd_sha1"]
|
del config["pwd_sha1"]
|
||||||
return config
|
return config
|
||||||
|
|
||||||
|
|
||||||
@export
|
@export
|
||||||
def set_config(self, config):
|
def set_config(self, config):
|
||||||
"""
|
"""
|
||||||
|
@ -708,3 +707,8 @@ class WebApi(JSONComponent):
|
||||||
if isinstance(config[key], unicode) or isinstance(config[key], str):
|
if isinstance(config[key], unicode) or isinstance(config[key], str):
|
||||||
config[key] = config[key].encode("utf8")
|
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)
|
||||||
|
|
Loading…
Reference in New Issue