VirtualMailManager/MailLocation.py
changeset 47 191d5a5adc4a
parent 34 6d74e20c5b3b
child 48 0d5f58f8b8f5
equal deleted inserted replaced
46:7ece710c559d 47:191d5a5adc4a
    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
       
    18 
       
    19 from Exceptions import VMMMailLocationException as MLE
    17 from Exceptions import VMMMailLocationException as MLE
    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 MailLocation:
    20 class MailLocation:
    27     """A wrapper class thats provide access to the maillocation table"""
    21     """A wrapper class thats provide access to the maillocation table"""
    28     def __init__(self, dbh, mid=None, maillocation=None):
    22     def __init__(self, dbh, mid=None, maillocation=None):
    29         """Creates a new MailLocation instance.
    23         """Creates a new MailLocation instance.