VirtualMailManager/Alias.py
changeset 47 191d5a5adc4a
parent 38 c44ea4526546
child 48 0d5f58f8b8f5
equal deleted inserted replaced
46:7ece710c559d 47:191d5a5adc4a
    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 
       
    18 from Exceptions import VMMAliasException
    16 from Exceptions import VMMAliasException
    19 from Domain import Domain
    17 from Domain import Domain
    20 import constants.ERROR as ERR
    18 import constants.ERROR as ERR
    21 
       
    22 gettext.bindtextdomain('vmm', '/usr/local/share/locale')
       
    23 gettext.textdomain('vmm')
       
    24 _ = gettext.gettext
       
    25 
    19 
    26 class Alias:
    20 class Alias:
    27     """Class to manage e-mail accounts."""
    21     """Class to manage e-mail accounts."""
    28     def __init__(self, dbh, address, destination=None):
    22     def __init__(self, dbh, address, destination=None):
    29         if address == destination:
    23         if address == destination: