VirtualMailManager/MailLocation.py
changeset 32 ceb700bc4a80
parent 9 e3d3dbeb5b84
child 34 6d74e20c5b3b
equal deleted inserted replaced
31:b7a7e566833c 32:ceb700bc4a80
    12 __author__ = 'Pascal Volk <p.volk@veb-it.de>'
    12 __author__ = 'Pascal Volk <p.volk@veb-it.de>'
    13 __version__ = VERSION
    13 __version__ = VERSION
    14 __revision__ = 'rev '+'$Rev$'.split()[1]
    14 __revision__ = 'rev '+'$Rev$'.split()[1]
    15 __date__ = '$Date$'.split()[1]
    15 __date__ = '$Date$'.split()[1]
    16 
    16 
       
    17 import gettext
    17 
    18 
    18 from Exceptions import VMMMailLocationException as MLE
    19 from Exceptions import VMMMailLocationException as MLE
    19 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
    20 
    25 
    21 class MailLocation:
    26 class MailLocation:
    22     """A wrapper class thats provide access to the maillocation table"""
    27     """A wrapper class thats provide access to the maillocation table"""
    23     def __init__(self, dbh, mid=None, maillocation=None):
    28     def __init__(self, dbh, mid=None, maillocation=None):
    24         """Creates a new MailLocation instance.
    29         """Creates a new MailLocation instance.