equal
deleted
inserted
replaced
31 self._gid = 0 |
31 self._gid = 0 |
32 self._isNew = False |
32 self._isNew = False |
33 self._setAddr() |
33 self._setAddr() |
34 if not self._dest is None: |
34 if not self._dest is None: |
35 self._exists() |
35 self._exists() |
36 if VMM.VirtualMailManager.accountExists(self._dbh, |
36 if VMM.VirtualMailManager.accountExists(self._dbh, self._addr): |
37 self._addr): |
|
38 raise VMMAE(_(u"There is already an account with address “%s”.") %\ |
37 raise VMMAE(_(u"There is already an account with address “%s”.") %\ |
39 self._addr, ERR.ACCOUNT_EXISTS) |
38 self._addr, ERR.ACCOUNT_EXISTS) |
40 if VMM.VirtualMailManager.relocatedExists(self._dbh, |
39 if VMM.VirtualMailManager.relocatedExists(self._dbh, self._addr): |
41 self._addr): |
|
42 raise VMMAE( |
40 raise VMMAE( |
43 _(u"There is already a relocated user with the address “%s”.") %\ |
41 _(u"There is already a relocated user with the address “%s”.") %\ |
44 self._addr, ERR.RELOCATED_EXISTS) |
42 self._addr, ERR.RELOCATED_EXISTS) |
45 |
43 |
46 def _exists(self): |
44 def _exists(self): |