equal
deleted
inserted
replaced
2 # -*- coding: UTF-8 -*- |
2 # -*- coding: UTF-8 -*- |
3 # opyright 2007-2008 VEB IT |
3 # opyright 2007-2008 VEB IT |
4 # See COPYING for distribution information. |
4 # See COPYING for distribution information. |
5 # $Id$ |
5 # $Id$ |
6 |
6 |
7 """Virtual Mail Manager's Domain class to manage email domains.""" |
7 """Virtual Mail Manager's Domain class to manage e-mail domains.""" |
8 |
8 |
9 __author__ = 'Pascal Volk <p.volk@veb-it.de>' |
9 __author__ = 'Pascal Volk <p.volk@veb-it.de>' |
10 __version__ = 'rev '+'$Rev$'.split()[1] |
10 __version__ = 'rev '+'$Rev$'.split()[1] |
11 __date__ = '$Date$'.split()[1] |
11 __date__ = '$Date$'.split()[1] |
12 |
12 |
16 import constants.ERROR as ERR |
16 import constants.ERROR as ERR |
17 |
17 |
18 MAILDIR_CHARS = '0123456789abcdefghijklmnopqrstuvwxyz' |
18 MAILDIR_CHARS = '0123456789abcdefghijklmnopqrstuvwxyz' |
19 |
19 |
20 class Domain: |
20 class Domain: |
21 """Class to manage email domains.""" |
21 """Class to manage e-mail domains.""" |
22 def __init__(self, dbh, domainname, basedir, transport=None): |
22 def __init__(self, dbh, domainname, basedir, transport=None): |
23 """Creates a new Domain instance. |
23 """Creates a new Domain instance. |
24 |
24 |
25 Keyword arguments: |
25 Keyword arguments: |
26 dbh -- a pyPgSQL.PgSQL.connection |
26 dbh -- a pyPgSQL.PgSQL.connection |