SàT: multi-profile: memory & dbus bridge's methods profile management
/!\ profiles not managed yet for dbus signals
This commit is contained in:
parent
656bea30dd
commit
54730cb077
1 changed files with 180 additions and 132 deletions
|
|
@ -43,7 +43,7 @@ class XEP_0100():
|
|||
info("Gateways plugin initialization")
|
||||
self.host = host
|
||||
self.__gateways = {} #dict used to construct the answer to findGateways. Key = target jid
|
||||
host.bridge.addMethod("findGateways", ".communication", in_sign='s', out_sign='s', method=self.findGateways)
|
||||
host.bridge.addMethod("findGateways", ".communication", in_sign='ss', out_sign='s', method=self.findGateways)
|
||||
host.bridge.addMethod("gatewayRegister", ".request", in_sign='ssa(ss)', out_sign='s', method=self.gatewayRegister)
|
||||
|
||||
def __inc_handled_items(self, request_id):
|
||||
|
|
@ -109,6 +109,7 @@ class XEP_0100():
|
|||
"""
|
||||
client = self.host.getClient(profile_key)
|
||||
assert(client)
|
||||
print "target ===>", target
|
||||
to_jid = jid.JID(target)
|
||||
debug ("find gateways (target = %s)" % to_jid.full())
|
||||
request_id = self.host.get_next_id()
|
||||
|
|
|
|||
Loading…
Reference in a new issue