VirtualMailManager/Account.py
changeset 78 8f1e501b1bb1
parent 76 14c0a092d7d2
child 82 6c85915f3815
equal deleted inserted replaced
77:9e5af7210c29 78:8f1e501b1bb1
    39         if VMM.VirtualMailManager.aliasExists(self._dbh, self._addr):
    39         if VMM.VirtualMailManager.aliasExists(self._dbh, self._addr):
    40             raise AccE(_(u"There is already an alias with the address »%s«.") %\
    40             raise AccE(_(u"There is already an alias with the address »%s«.") %\
    41                     self._addr, ERR.ALIAS_EXISTS)
    41                     self._addr, ERR.ALIAS_EXISTS)
    42         if VMM.VirtualMailManager.relocatedExists(self._dbh, self._addr):
    42         if VMM.VirtualMailManager.relocatedExists(self._dbh, self._addr):
    43             raise AccE(
    43             raise AccE(
    44               _(u"There is already an relocated user with the address »%s«.") %\
    44               _(u"There is already a relocated user with the address »%s«.") %\
    45                     self._addr, ERR.RELOCATED_EXISTS)
    45                     self._addr, ERR.RELOCATED_EXISTS)
    46 
    46 
    47     def _exists(self):
    47     def _exists(self):
    48         dbc = self._dbh.cursor()
    48         dbc = self._dbh.cursor()
    49         dbc.execute("SELECT uid, mid, tid FROM users \
    49         dbc.execute("SELECT uid, mid, tid FROM users \