VirtualMailManager/handler.py
branchv0.6.x
changeset 422 33a45e4c80c4
parent 417 8209da83e256
child 426 933b9debbec1
equal deleted inserted replaced
421:ff2a61e155db 422:33a45e4c80c4
   570         """Wrapper around Account.set_password() and Account.save()."""
   570         """Wrapper around Account.set_password() and Account.save()."""
   571         acc = self._get_account(emailaddress)
   571         acc = self._get_account(emailaddress)
   572         if acc:
   572         if acc:
   573             raise VMMError(_(u"The account '%s' already exists.") %
   573             raise VMMError(_(u"The account '%s' already exists.") %
   574                            acc.address, ACCOUNT_EXISTS)
   574                            acc.address, ACCOUNT_EXISTS)
   575         other = self._is_other_address(acc.address, TYPE_ACCOUNT)
   575         self._is_other_address(acc.address, TYPE_ACCOUNT)
   576         acc.set_password(password)
   576         acc.set_password(password)
   577         acc.save()
   577         acc.save()
   578         self._make_account_dirs(acc)
   578         self._make_account_dirs(acc)
   579 
   579 
   580     def alias_add(self, aliasaddress, *targetaddresses):
   580     def alias_add(self, aliasaddress, *targetaddresses):