VirtualMailManager/Handler.py
branchv0.6.x
changeset 293 a77b67673aa6
parent 290 e2785e04f92e
child 294 7d1bafc6fa30
equal deleted inserted replaced
292:619dadc0fd25 293:a77b67673aa6
   575             if not self._is_other_address(acc.address, TYPE_ACCOUNT):
   575             if not self._is_other_address(acc.address, TYPE_ACCOUNT):
   576                 raise VMMError(_(u"The account '%s' doesn't exist.") %
   576                 raise VMMError(_(u"The account '%s' doesn't exist.") %
   577                                acc.address, ERR.NO_SUCH_ACCOUNT)
   577                                acc.address, ERR.NO_SUCH_ACCOUNT)
   578         info = acc.get_info()
   578         info = acc.get_info()
   579         if self._Cfg.dget('account.disk_usage') or details in ('du', 'full'):
   579         if self._Cfg.dget('account.disk_usage') or details in ('du', 'full'):
   580             path = os.path.join(acc.home, info['mail_location'].split('/')[-1])
   580             path = os.path.join(acc.home, acc.mail_location.directory)
   581             info['disk usage'] = self.__getDiskUsage(path)
   581             info['disk usage'] = self.__getDiskUsage(path)
   582             if details in (None, 'du'):
   582             if details in (None, 'du'):
   583                 return info
   583                 return info
   584         if details in ('aliases', 'full'):
   584         if details in ('aliases', 'full'):
   585             return (info, acc.get_aliases())
   585             return (info, acc.get_aliases())