equal
deleted
inserted
replaced
10 from Domain import Domain |
10 from Domain import Domain |
11 from EmailAddress import EmailAddress |
11 from EmailAddress import EmailAddress |
12 import constants.ERROR as ERR |
12 import constants.ERROR as ERR |
13 import VirtualMailManager as VMM |
13 import VirtualMailManager as VMM |
14 |
14 |
15 class Relocated: |
15 class Relocated(object): |
16 """Class to manage e-mail addresses of relocated users.""" |
16 """Class to manage e-mail addresses of relocated users.""" |
|
17 __slots__ = ('_addr', '_dest', '_gid', '_isNew', '_dbh') |
17 def __init__(self, dbh, address, destination=None): |
18 def __init__(self, dbh, address, destination=None): |
18 if isinstance(address, EmailAddress): |
19 if isinstance(address, EmailAddress): |
19 self._addr = address |
20 self._addr = address |
20 else: |
21 else: |
21 raise TypeError("Argument 'address' is not an EmailAddress") |
22 raise TypeError("Argument 'address' is not an EmailAddress") |