def set_nap(self, on):
     dprint("set nap", on)
     if self.Applet.Manager != None:
         adapters = self.Applet.Manager.list_adapters()
         for adapter in adapters:
             s = NetworkServer(adapter.get_object_path())
             if on:
                 s.register("nap", "pan1")
             else:
                 s.unregister("nap")
Exemple #2
0
 def set_nap(self, on):
     dprint("set nap", on)
     if self.Applet.Manager != None:
         adapters = self.Applet.Manager.list_adapters()
         for adapter in adapters:
             s = NetworkServer(adapter.get_object_path())
             if on:
                 s.register("nap", "pan1")
             else:
                 s.unregister("nap")
Exemple #3
0
    def set_nap(self, on):
        logging.info("set nap %s" % on)
        if self.parent.manager_state:
            adapters = self.parent.Manager.get_adapters()
            for adapter in adapters:
                object_path = adapter.get_object_path()

                registered = self._registered.setdefault(object_path, False)

                s = NetworkServer(obj_path=object_path)
                if on and not registered:
                    s.register("nap", "pan1")
                    self._registered[object_path] = True
                elif not on and registered:
                    s.unregister("nap")
                    self._registered[object_path] = False
Exemple #4
0
    def set_nap(self, on):
        dprint("set nap", on)
        if self.Applet.Manager is not None:
            adapters = self.Applet.Manager.list_adapters()
            for adapter in adapters:
                object_path = adapter.get_object_path()

                registered = self._registered.setdefault(object_path, False)

                s = NetworkServer(object_path)
                if on and not registered:
                    s.register("nap", "pan1")
                    self._registered[object_path] = True
                elif not on and registered:
                    s.unregister("nap")
                    self._registerd[object_path] = False
    def set_nap(self, on):
        logging.info("set nap %s" % on)
        if self.parent.manager_state:
            adapters = self.parent.Manager.get_adapters()
            for adapter in adapters:
                object_path = adapter.get_object_path()

                registered = self._registered.setdefault(object_path, False)

                s = NetworkServer(object_path)
                if on and not registered:
                    s.register("nap", "pan1")
                    self._registered[object_path] = True
                elif not on and registered:
                    s.unregister("nap")
                    self._registered[object_path] = False
Exemple #6
0
    def set_nap(self, on):
        dprint("set nap", on)
        if self.Applet.Manager is not None:
            adapters = self.Applet.Manager.list_adapters()
            for adapter in adapters:
                object_path = adapter.get_object_path()

                registered = self._registered.setdefault(object_path, False)

                s = NetworkServer(object_path)
                if on and not registered:
                    s.register("nap", "pan1")
                    self._registered[object_path] = True
                elif not on and registered:
                    s.unregister("nap")
                    self._registerd[object_path] = False