VirtualMailManager/Config.py
changeset 128 cf8116625866
parent 120 928659c8ee9f
child 133 2d5c4745efec
equal deleted inserted replaced
127:97a9f6dd954b 128:cf8116625866
    92             raise VMMConfigException(str(e), ERR.CONF_ERROR)
    92             raise VMMConfigException(str(e), ERR.CONF_ERROR)
    93         self.__cfgFile.close()
    93         self.__cfgFile.close()
    94 
    94 
    95     def check(self):
    95     def check(self):
    96         """Performs a configuration check.
    96         """Performs a configuration check.
    97         
    97 
    98         Raises a VMMConfigException if the check fails.
    98         Raises a VMMConfigException if the check fails.
    99         """
    99         """
   100         if not self.__chkSections():
   100         if not self.__chkSections():
   101             errmsg = StringIO()
   101             errmsg = StringIO()
   102             errmsg.write(_("Using configuration file: %s\n") %\
   102             errmsg.write(_("Using configuration file: %s\n") %\