VirtualMailManager/Alias.py
changeset 78 8f1e501b1bb1
parent 76 14c0a092d7d2
child 82 6c85915f3815
equal deleted inserted replaced
77:9e5af7210c29 78:8f1e501b1bb1
    43         if VMM.VirtualMailManager.accountExists(self._dbh, self._addr):
    43         if VMM.VirtualMailManager.accountExists(self._dbh, self._addr):
    44             raise VMMAE(_(u"There is already an account with address »%s«.") %\
    44             raise VMMAE(_(u"There is already an account with address »%s«.") %\
    45                     self._addr, ERR.ACCOUNT_EXISTS)
    45                     self._addr, ERR.ACCOUNT_EXISTS)
    46         if VMM.VirtualMailManager.relocatedExists(self._dbh, self._addr):
    46         if VMM.VirtualMailManager.relocatedExists(self._dbh, self._addr):
    47             raise VMMAE(
    47             raise VMMAE(
    48               _(u"There is already an relocated user with the address »%s«.") %\
    48               _(u"There is already a relocated user with the address »%s«.") %\
    49                     self._addr, ERR.RELOCATED_EXISTS)
    49                     self._addr, ERR.RELOCATED_EXISTS)
    50 
    50 
    51     def _exists(self):
    51     def _exists(self):
    52         dbc = self._dbh.cursor()
    52         dbc = self._dbh.cursor()
    53         dbc.execute("SELECT gid FROM alias WHERE gid=%s AND address=%s\
    53         dbc.execute("SELECT gid FROM alias WHERE gid=%s AND address=%s\