示例#1
0
文件: bi.py 项目: itouch2web/check_mk
def render_bi_groups():
    bi.compile_forest(config.user_id)
    html.write("<ul>")
    for group, trees in bi.g_user_cache["forest"].items():
        if len(trees) > 0:
            bulletlink(group, "view.py?view_name=aggr_group&aggr_group=%s" %
                    htmllib.urlencode(group))
    html.write("</ul>")
示例#2
0
def render_bi_groups():
    bi.compile_forest(config.user_id)
    html.write("<ul>")
    for group, trees in bi.g_user_cache["forest"].items():
        if len(trees) > 0:
            bulletlink(
                group, "view.py?view_name=aggr_group&aggr_group=%s" %
                htmllib.urlencode(group))
    html.write("</ul>")
示例#3
0
 def display(self):
     bi.compile_forest(config.user_id)
     htmlvar = self.htmlvars[0]
     html.select(htmlvar, [ ("", "") ] + [(g,g) for g in bi.g_user_cache["forest"].keys()])