VirtualMailManager/Relocated.py
changeset 122 30abf0abf8f8
parent 102 485d3f7d6981
child 133 2d5c4745efec
equal deleted inserted replaced
121:7ccc05774118 122:30abf0abf8f8
    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")