Esempio n. 1
0
    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)
Esempio n. 2
0
    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)
Esempio n. 3
0
    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)
Esempio n. 4
0
 def init(self):
     self.client = MuninClient.get()
Esempio n. 5
0
 def init(self):
     self.client = MuninClient.get()