VirtualMailManager/Alias.py
changeset 129 4ffb50de00d5
parent 122 30abf0abf8f8
child 133 2d5c4745efec
equal deleted inserted replaced
128:cf8116625866 129:4ffb50de00d5
   118         dbc.close()
   118         dbc.close()
   119         if rowcount > 0:
   119         if rowcount > 0:
   120             self._dbh.commit()
   120             self._dbh.commit()
   121         else:
   121         else:
   122             if self._dest is None:
   122             if self._dest is None:
   123                 msg = u"The alias »%s« doesn't exists." % self._addr
   123                 msg = _(u"The alias »%s« doesn't exists.") % self._addr
   124             else:
   124             else:
   125                 msg = u"The alias »%(a)s« with destination »%(d)s« doesn't\
   125                 msg = _(u"The alias »%(a)s« with destination »%(d)s« doesn't\
   126  exists." % {'a': self._addr, 'd': self._dest}
   126  exists.") % {'a': self._addr, 'd': self._dest}
   127             raise VMMAE(_(msg), ERR.NO_SUCH_ALIAS)
   127             raise VMMAE(msg, ERR.NO_SUCH_ALIAS)
   128 
   128