示例#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)
示例#2
0
文件: main.py 项目: AojiaoZero/ajenti
    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)
示例#3
0
文件: main.py 项目: Bludge0n/ajenti
    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)
示例#4
0
文件: main.py 项目: vlara/ajenti
 def on_session_start(self):
     self._tree = TreeManager()
     self._host = None
     self._hist = None
     self._client = MuninClient(self.app)
示例#5
0
 def init(self):
     self.client = MuninClient.get()
示例#6
0
文件: main.py 项目: AojiaoZero/ajenti
 def init(self):
     self.client = MuninClient.get()