Ejemplo n.º 1
0
 def __init__(self, objectPath, trace=None):
     super(Si446xDbus, self).__init__(objectPath)
     self.uuid = binascii.hexlify(os.urandom(16))
     self.status = 'OFF'
     self.control_event = None
     self.obj_handler = objects.DBusObjectHandler(self)
     self.trace = trace if (trace) else si446xtrace.Trace(100)
Ejemplo n.º 2
0
    def __init__(self):
        objects.DBusObject.__init__(self, '/org/freedesktop/DBus')
        self.uuid = binascii.hexlify(os.urandom(16))
        self.clients = dict()  # maps unique_bus_id to client connection
        self.busNames = dict()  # maps name to list of queued connections
        self.router = router.MessageRouter()
        self.next_id = 1
        self.obj_handler = objects.DBusObjectHandler(self)

        self.obj_handler.exportObject(self)
Ejemplo n.º 3
0
    def connectionAuthenticated(self):
        """
        Called by L{protocol.BasicDBusProtocol} when the DBus authentication
        has completed successfully.
        """
        self.router = router.MessageRouter()
        self.objHandler = objects.DBusObjectHandler(self)
        self._pendingCalls = dict(
        )  # serial_number => (deferred, delayed_timeout_cb | None)
        self._dcCallbacks = list()

        d = self.callRemote('/Hello',
                            'Hello',
                            interface='org.freedesktop.DBus',
                            destination='org.freedesktop.DBus')

        d.addCallbacks(self._cbGotHello, lambda err: self.factory._failed(err))
Ejemplo n.º 4
0
 def __init__(self, object_path):
     super(TagNetDbus, self).__init__(object_path)
     self.object_path = object_path
     self.obj_handler = objects.DBusObjectHandler(self)
     log.msg('TagNetDbus-init, {}'.format(self.object_path))