equal
deleted
inserted
replaced
8 |
8 |
9 from Exceptions import VMMAliasDomainException as VADE |
9 from Exceptions import VMMAliasDomainException as VADE |
10 import constants.ERROR as ERR |
10 import constants.ERROR as ERR |
11 import VirtualMailManager as VMM |
11 import VirtualMailManager as VMM |
12 |
12 |
13 class AliasDomain: |
13 class AliasDomain(object): |
14 """Class to manage e-mail alias domains.""" |
14 """Class to manage e-mail alias domains.""" |
|
15 __slots__ = ('__gid', '__name', '_domain', '_dbh') |
15 def __init__(self, dbh, domainname, targetDomain=None): |
16 def __init__(self, dbh, domainname, targetDomain=None): |
16 self._dbh = dbh |
17 self._dbh = dbh |
17 self.__name = VMM.VirtualMailManager.chkDomainname(domainname) |
18 self.__name = VMM.VirtualMailManager.chkDomainname(domainname) |
18 self.__gid = 0 |
19 self.__gid = 0 |
19 self._domain = targetDomain |
20 self._domain = targetDomain |