VirtualMailManager/alias.py
branchv0.6.x
changeset 425 8394e222aba3
parent 424 46c296c6e231
child 568 14abdd04ddf5
equal deleted inserted replaced
424:46c296c6e231 425:8394e222aba3
   141         if not self._dests:
   141         if not self._dests:
   142             raise AErr(_(u"The alias '%s' does not exist.") % self._addr,
   142             raise AErr(_(u"The alias '%s' does not exist.") % self._addr,
   143                        NO_SUCH_ALIAS)
   143                        NO_SUCH_ALIAS)
   144         if not destination in self._dests:
   144         if not destination in self._dests:
   145             raise AErr(_(u"The address '%(addr)s' is not a destination of "
   145             raise AErr(_(u"The address '%(addr)s' is not a destination of "
   146                          u"the alias '%(alias)s'.") % {'addr': self._addr,
   146                          u"the alias '%(alias)s'.") % {'addr': destination,
   147                        'alias': destination}, NO_SUCH_ALIAS)
   147                        'alias': self._addr}, NO_SUCH_ALIAS)
   148         self._delete(destination)
   148         self._delete(destination)
   149         self._dests.remove(destination)
   149         self._dests.remove(destination)
   150 
   150 
   151     def get_destinations(self):
   151     def get_destinations(self):
   152         """Returns an iterator for all destinations of the alias."""
   152         """Returns an iterator for all destinations of the alias."""