VirtualMailManager/Handler.py
branchv0.6.x
changeset 294 7d1bafc6fa30
parent 293 a77b67673aa6
child 309 d21423478803
--- a/VirtualMailManager/Handler.py	Wed May 12 07:40:59 2010 +0000
+++ b/VirtualMailManager/Handler.py	Tue May 18 07:00:21 2010 +0000
@@ -26,7 +26,7 @@
 from VirtualMailManager.AliasDomain import AliasDomain
 from VirtualMailManager.common import exec_ok
 from VirtualMailManager.Config import Config as Cfg
-from VirtualMailManager.Domain import Domain, ace2idna, get_gid
+from VirtualMailManager.Domain import Domain, get_gid
 from VirtualMailManager.EmailAddress import EmailAddress
 from VirtualMailManager.errors import \
      DomainError, NotRootError, PermissionError, VMMError
@@ -416,7 +416,8 @@
         dom = self.__getDomain(domainname)
         dominfo = dom.get_info()
         if dominfo['domainname'].startswith('xn--'):
-            dominfo['domainname'] += ' (%s)' % ace2idna(dominfo['domainname'])
+            dominfo['domainname'] += ' (%s)' % \
+                                     dominfo['domainname'].decode('idna')
         if details is None:
             return dominfo
         elif details == 'accounts':