equal
deleted
inserted
replaced
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\ |