equal
deleted
inserted
replaced
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, |