Ejemplo 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)
Ejemplo 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)
Ejemplo 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)
Ejemplo n.º 4
0
Archivo: main.py Proyecto: vlara/ajenti
 def on_session_start(self):
     self._tree = TreeManager()
     self._host = None
     self._hist = None
     self._client = MuninClient(self.app)
Ejemplo n.º 5
0
 def init(self):
     self.client = MuninClient.get()
Ejemplo n.º 6
0
 def init(self):
     self.client = MuninClient.get()