VirtualMailManager/handler.py
branchv0.6.x
changeset 447 c31d604e26d3
parent 444 95275b61ff8a
child 458 4ff0fa3ba0fa
equal deleted inserted replaced
446:18b75e6a39d5 447:c31d604e26d3
   509                            'relocated']:
   509                            'relocated']:
   510             raise VMMError(_(u"Invalid argument: '%s'") % details,
   510             raise VMMError(_(u"Invalid argument: '%s'") % details,
   511                            INVALID_ARGUMENT)
   511                            INVALID_ARGUMENT)
   512         dom = self._get_domain(domainname)
   512         dom = self._get_domain(domainname)
   513         dominfo = dom.get_info()
   513         dominfo = dom.get_info()
   514         if dominfo['domainname'].startswith('xn--'):
   514         if dominfo['domain name'].startswith('xn--'):
   515             dominfo['domainname'] += ' (%s)' % \
   515             dominfo['domain name'] += ' (%s)' % \
   516                                      dominfo['domainname'].decode('idna')
   516                                       dominfo['domain name'].decode('idna')
   517         if details is None:
   517         if details is None:
   518             return dominfo
   518             return dominfo
   519         elif details == 'accounts':
   519         elif details == 'accounts':
   520             return (dominfo, dom.get_accounts())
   520             return (dominfo, dom.get_accounts())
   521         elif details == 'aliasdomains':
   521         elif details == 'aliasdomains':