equal
deleted
inserted
replaced
38 self._gid = 0 |
38 self._gid = 0 |
39 self._isNew = False |
39 self._isNew = False |
40 self._setAddr() |
40 self._setAddr() |
41 if not self._dest is None: |
41 if not self._dest is None: |
42 self._exists() |
42 self._exists() |
43 if VMM.VirtualMailManager.accountExists(self._dbh, self._addr): |
43 if self._isNew and VMM.VirtualMailManager.accountExists(self._dbh, |
|
44 self._addr): |
44 raise VMMAE(_(u"There is already an account with address »%s«.") %\ |
45 raise VMMAE(_(u"There is already an account with address »%s«.") %\ |
45 self._addr, ERR.ACCOUNT_EXISTS) |
46 self._addr, ERR.ACCOUNT_EXISTS) |
46 if VMM.VirtualMailManager.relocatedExists(self._dbh, self._addr): |
47 if self._isNew and VMM.VirtualMailManager.relocatedExists(self._dbh, |
|
48 self._addr): |
47 raise VMMAE( |
49 raise VMMAE( |
48 _(u"There is already a relocated user with the address »%s«.") %\ |
50 _(u"There is already a relocated user with the address »%s«.") %\ |
49 self._addr, ERR.RELOCATED_EXISTS) |
51 self._addr, ERR.RELOCATED_EXISTS) |
50 |
52 |
51 def _exists(self): |
53 def _exists(self): |