2 # Copyright (c) 2007 - 2009, VEB IT |
2 # Copyright (c) 2007 - 2009, VEB IT |
3 # See COPYING for distribution information. |
3 # See COPYING for distribution information. |
4 |
4 |
5 """The main class for vmm.""" |
5 """The main class for vmm.""" |
6 |
6 |
7 from constants.VERSION import * |
7 |
8 |
|
9 import os |
|
10 import re |
|
11 from encodings.idna import ToASCII, ToUnicode |
8 from encodings.idna import ToASCII, ToUnicode |
12 from getpass import getpass |
9 from getpass import getpass |
13 from shutil import rmtree |
10 from shutil import rmtree |
14 from subprocess import Popen, PIPE |
11 from subprocess import Popen, PIPE |
15 |
12 |
16 from pyPgSQL import PgSQL # python-pgsql - http://pypgsql.sourceforge.net |
13 from pyPgSQL import PgSQL # python-pgsql - http://pypgsql.sourceforge.net |
17 |
14 |
18 import constants.ERROR as ERR |
15 from __main__ import os, re, ENCODING, ERR, w_std |
19 from __main__ import ENCODING, w_std |
|
20 from ext.Postconf import Postconf |
16 from ext.Postconf import Postconf |
21 from Account import Account |
17 from Account import Account |
22 from Alias import Alias |
18 from Alias import Alias |
23 from AliasDomain import AliasDomain |
19 from AliasDomain import AliasDomain |
24 from Config import Config as Cfg |
20 from Config import Config as Cfg |