VirtualMailManager/Alias.py
changeset 32 ceb700bc4a80
parent 12 44161dbb1518
child 34 6d74e20c5b3b
equal deleted inserted replaced
31:b7a7e566833c 32:ceb700bc4a80
    11 __author__ = 'Pascal Volk <p.volk@veb-it.de>'
    11 __author__ = 'Pascal Volk <p.volk@veb-it.de>'
    12 __version__ = VERSION
    12 __version__ = VERSION
    13 __revision__ = 'rev '+'$Rev$'.split()[1]
    13 __revision__ = 'rev '+'$Rev$'.split()[1]
    14 __date__ = '$Date$'.split()[1]
    14 __date__ = '$Date$'.split()[1]
    15 
    15 
       
    16 import gettext
       
    17 
    16 from Exceptions import VMMAliasException
    18 from Exceptions import VMMAliasException
    17 from Domain import Domain
    19 from Domain import Domain
    18 import constants.ERROR as ERR
    20 import constants.ERROR as ERR
       
    21 
       
    22 gettext.bindtextdomain('vmm', '/usr/local/share/locale')
       
    23 gettext.textdomain('vmm')
       
    24 _ = gettext.gettext
    19 
    25 
    20 class Alias:
    26 class Alias:
    21     """Class to manage e-mail accounts."""
    27     """Class to manage e-mail accounts."""
    22     def __init__(self, dbh, address, destination=None):
    28     def __init__(self, dbh, address, destination=None):
    23         if address == destination:
    29         if address == destination: