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
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)