VirtualMailManager/Transport.py
changeset 32 ceb700bc4a80
parent 8 7e3ce56f49e6
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
       
    18 
    17 from Exceptions import VMMTransportException
    19 from Exceptions import VMMTransportException
    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 Transport:
    26 class Transport:
    21     """A wrapper class thats provide access to the transport table"""
    27     """A wrapper class thats provide access to the transport table"""
    22     def __init__(self, dbh, tid=None, transport=None):
    28     def __init__(self, dbh, tid=None, transport=None):
    23         """Creates a new Transport instance.
    29         """Creates a new Transport instance.