def init(self): self.title = 'Munin' self.icon = 'stethoscope' self.category = _('Software') self.append(self.ui.inflate('munin:main')) def post_graph_bind(o, c, i, u): for plot in u.nearest(lambda x: x.typeid == 'munin:plot'): plot.on('widget', self.on_add_widget, i) self.find('graphs').post_item_bind = post_graph_bind self.munin_client = MuninClient.get() self.binder = Binder(None, self)
def init(self): self.title = "Munin" self.icon = "stethoscope" self.category = _("Software") self.append(self.ui.inflate("munin:main")) def post_graph_bind(o, c, i, u): for plot in u.nearest(lambda x: x.typeid == "munin:plot"): plot.on("widget", self.on_add_widget, i) self.find("graphs").post_item_bind = post_graph_bind self.munin_client = MuninClient.get() self.binder = Binder(None, self)
def init(self): self.client = MuninClient.get()