VirtualMailManager/Config.py
changeset 138 617f27715b01
parent 136 fb61f64e6351
child 162 0ac9ef587769
equal deleted inserted replaced
137:fc09f657082d 138:617f27715b01
     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):