VirtualMailManager/Account.py
changeset 82 6c85915f3815
parent 78 8f1e501b1bb1
child 90 1734eb5101c6
equal deleted inserted replaced
81:89b71a9abfcf 82:6c85915f3815
    34         self._mid = 0
    34         self._mid = 0
    35         self._tid = 0
    35         self._tid = 0
    36         self._passwd = password
    36         self._passwd = password
    37         self._setAddr()
    37         self._setAddr()
    38         self._exists()
    38         self._exists()
    39         if VMM.VirtualMailManager.aliasExists(self._dbh, self._addr):
    39         if self._uid < 1 and VMM.VirtualMailManager.aliasExists(self._dbh,
       
    40                 self._addr):
    40             raise AccE(_(u"There is already an alias with the address »%s«.") %\
    41             raise AccE(_(u"There is already an alias with the address »%s«.") %\
    41                     self._addr, ERR.ALIAS_EXISTS)
    42                     self._addr, ERR.ALIAS_EXISTS)
    42         if VMM.VirtualMailManager.relocatedExists(self._dbh, self._addr):
    43         if self._uid < 1 and VMM.VirtualMailManager.relocatedExists(self._dbh,
       
    44                 self._addr):
    43             raise AccE(
    45             raise AccE(
    44               _(u"There is already a relocated user with the address »%s«.") %\
    46               _(u"There is already a relocated user with the address »%s«.") %\
    45                     self._addr, ERR.RELOCATED_EXISTS)
    47                     self._addr, ERR.RELOCATED_EXISTS)
    46 
    48 
    47     def _exists(self):
    49     def _exists(self):