5 """Configuration class for read, modify and write the |
5 """Configuration class for read, modify and write the |
6 configuration from Virtual Mail Manager. |
6 configuration from Virtual Mail Manager. |
7 |
7 |
8 """ |
8 """ |
9 |
9 |
10 from constants.VERSION import * |
|
11 |
|
12 from shutil import copy2 |
10 from shutil import copy2 |
13 from ConfigParser import ConfigParser, MissingSectionHeaderError, ParsingError |
11 from ConfigParser import ConfigParser, MissingSectionHeaderError, ParsingError |
14 from cStringIO import StringIO |
12 from cStringIO import StringIO |
15 |
13 |
16 from __main__ import ENCODING, w_std |
14 from __main__ import ENCODING, ERR, w_std |
17 from Exceptions import VMMConfigException |
15 from Exceptions import VMMConfigException |
18 import constants.ERROR as ERR |
|
19 |
16 |
20 class Config(ConfigParser): |
17 class Config(ConfigParser): |
21 """This class is for reading and modifying vmm's configuration file.""" |
18 """This class is for reading and modifying vmm's configuration file.""" |
22 |
19 |
23 def __init__(self, filename): |
20 def __init__(self, filename): |