Alias.__init__(): Check really if the given address is not used.
--- a/VirtualMailManager/Alias.py Mon Sep 07 04:40:33 2009 +0000
+++ b/VirtualMailManager/Alias.py Mon Sep 07 21:40:36 2009 +0000
@@ -33,11 +33,11 @@
self._setAddr()
if not self._dest is None:
self._exists()
- if self._isNew and VMM.VirtualMailManager.accountExists(self._dbh,
+ if VMM.VirtualMailManager.accountExists(self._dbh,
self._addr):
raise VMMAE(_(u"There is already an account with address ā%sā.") %\
self._addr, ERR.ACCOUNT_EXISTS)
- if self._isNew and VMM.VirtualMailManager.relocatedExists(self._dbh,
+ if VMM.VirtualMailManager.relocatedExists(self._dbh,
self._addr):
raise VMMAE(
_(u"There is already a relocated user with the address ā%sā.") %\