VirtualMailManager/AliasDomain.py
branchv0.6.x
changeset 185 6e1ef32fbd82
parent 162 0ac9ef587769
child 199 0684790fff7c
--- a/VirtualMailManager/AliasDomain.py	Thu Feb 04 19:08:01 2010 +0000
+++ b/VirtualMailManager/AliasDomain.py	Fri Feb 05 20:13:32 2010 +0000
@@ -4,16 +4,16 @@
 
 """Virtual Mail Manager's AliasDomain class to manage alias domains."""
 
-from __main__ import ERR
-from Exceptions import VMMAliasDomainException as VADE
-import VirtualMailManager as VMM
+import VirtualMailManager.constants.ERROR as ERR
+from VirtualMailManager import chk_domainname
+from VirtualMailManager.Exceptions import VMMAliasDomainException as VADE
 
 class AliasDomain(object):
     """Class to manage e-mail alias domains."""
     __slots__ = ('__gid', '__name', '_domain', '_dbh')
     def __init__(self, dbh, domainname, targetDomain=None):
         self._dbh = dbh
-        self.__name = VMM.VirtualMailManager.chkDomainname(domainname)
+        self.__name = chk_domainname(domainname)
         self.__gid = 0
         self._domain = targetDomain
         self._exists()