def make_plugin_base_section(plugin_group):
elements = []
for item in plugin_group["items"]:
name = item["name"].title() if "SLA" != item["name"] else item["name"]
category_obj = category("%s %ss" % (plugin_group["group"].title(),
name))
elements.append(category_obj)
module, cls = item["base"].split(":")
plugin_base = getattr(importutils.import_module(module), cls)
for p in plugin_base.get_all():
category_obj.append(make_plugin_section(p, item["name"]))
return elements
评论列表
文章目录