def check_plugin_name_exists(name): if name not in [p.name for p in api.get_plugins()]: raise ex.InvalidException("Savanna doesn't contain plugin with name " "'%s'" % name)
def plugins_list(): return u.render(plugins=[p.dict for p in api.get_plugins()])