Author: asterix Date: 2007-01-17 12:40:59 +0100 (Wed, 17 Jan 2007) New Revision: 7852
Modified: trunk/src/common/connection.py trunk/src/common/helpers.py Log: change function name. see #2898
Modified: trunk/src/common/connection.py =================================================================== --- trunk/src/common/connection.py 2007-01-17 08:44:57 UTC (rev 7851) +++ trunk/src/common/connection.py 2007-01-17 11:40:59 UTC (rev 7852) @@ -349,8 +349,10 @@ self._hosts = [ {'host': h, 'port': p, 'prio': 10, 'weight': 10} ] self._hostname = hostname if use_srv: - # add request for srv query to the resolve, on result '_on_resolve' will be called - gajim.resolver.resolve('_xmpp-client._tcp.' + helpers.unicode_to_ACE(h), self._on_resolve) + # add request for srv query to the resolve, on result '_on_resolve' + # will be called + gajim.resolver.resolve('_xmpp-client._tcp.' + helpers.idn_to_ascii(h), + self._on_resolve) else: self._on_resolve('', [])
Modified: trunk/src/common/helpers.py =================================================================== --- trunk/src/common/helpers.py 2007-01-17 08:44:57 UTC (rev 7851) +++ trunk/src/common/helpers.py 2007-01-17 11:40:59 UTC (rev 7852) @@ -86,7 +86,7 @@
return prep(*decompose_jid(jidstring))
-def unicode_to_ACE(host): +def idn_to_ascii(host): '''convert IDN (Internationalized Domain Names) to ACE (ASCII-compatible encoding)''' labels = idna.dots.split(host) converted_labels = []