SàT: multi-profile: memory & dbus bridge's methods profile management

/!\ profiles not managed yet for dbus signals
This commit is contained in:
Goffi 2010-01-31 15:57:03 +11:00
commit 54730cb077

View file

@ -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()