equal
deleted
inserted
replaced
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: |