comparison plugins/plugin_xep_0100.py @ 30:d6b613764dd7

new plugin for xep 0077 (In-Band registration): first draft - wix: register in gateways manager now call the in-band registration process
author Goffi <goffi@goffi.org>
date Tue, 08 Dec 2009 04:19:41 +0100
parents 53e921c8a357
children a61beb21d16d
comparison
equal deleted inserted replaced
29:df3b0b5ac49e 30:d6b613764dd7
46 def discoInfo(self, disco, entity, request_id): 46 def discoInfo(self, disco, entity, request_id):
47 """Find disco infos about entity, to check if it is a gateway""" 47 """Find disco infos about entity, to check if it is a gateway"""
48 48
49 for identity in disco.identities: 49 for identity in disco.identities:
50 if identity[0] == 'gateway': 50 if identity[0] == 'gateway':
51 print ("Found gateway (%s): %s" % (entity, disco.identities[identity])) 51 print ("Found gateway (%s): %s" % (entity.full(), disco.identities[identity]))
52 self.__gateways[request_id][entity.full()] = { 52 self.__gateways[request_id][entity.full()] = {
53 'name':disco.identities[identity], 53 'name':disco.identities[identity],
54 'type':identity[1] 54 'type':identity[1]
55 } 55 }
56 56