Ejemplo n.º 1
0
    def get_siblings(self, session, node):
        info = self.get_config_info(session)

        siblings = list()
        (ng, _, _) = rpartition(node, ".")
        for group in info:
            (g, _, _) = rpartition(group, ".")
            if g == ng:
                siblings.append(group)

        return siblings
Ejemplo n.º 2
0
 def render_html_title(self, session, item):
     (_, (name, value)) = item
     os, _, state = rpartition(name, " ")
     return "There are %d %s slots with an OS of %s" % (value, state, os)