VirtualMailManager/handler.py
branchv0.6.x
changeset 426 933b9debbec1
parent 422 33a45e4c80c4
child 441 1af5fe0683ce
equal deleted inserted replaced
425:8394e222aba3 426:933b9debbec1
   640         destination will be removed from the alias."""
   640         destination will be removed from the alias."""
   641         alias = self._get_alias(aliasaddress)
   641         alias = self._get_alias(aliasaddress)
   642         if targetaddress is None:
   642         if targetaddress is None:
   643             alias.delete()
   643             alias.delete()
   644         else:
   644         else:
   645             alias.del_destination(EmailAddress(targetaddress))
   645             alias.del_destination(DestinationEmailAddress(targetaddress,
       
   646                                                           self._dbh))
   646 
   647 
   647     def user_info(self, emailaddress, details=None):
   648     def user_info(self, emailaddress, details=None):
   648         """Wrapper around Account.get_info(...)"""
   649         """Wrapper around Account.get_info(...)"""
   649         if details not in (None, 'du', 'aliases', 'full'):
   650         if details not in (None, 'du', 'aliases', 'full'):
   650             raise VMMError(_(u"Invalid argument: '%s'") % details,
   651             raise VMMError(_(u"Invalid argument: '%s'") % details,