VirtualMailManager/Config.py
branchv0.6.x
changeset 188 cf1b5f22dbd2
parent 187 38b9a9859749
child 200 983cf98d5881
equal deleted inserted replaced
187:38b9a9859749 188:cf1b5f22dbd2
   259             raise TypeError('validate has to be callable or None, got a %r'\
   259             raise TypeError('validate has to be callable or None, got a %r'\
   260                             % validate.__class__.__name__)
   260                             % validate.__class__.__name__)
   261 
   261 
   262 
   262 
   263 class Config(LazyConfig):
   263 class Config(LazyConfig):
   264     """This class is for reading and modifying vmm's configuration file."""
   264     """This class is for reading vmm's configuration file."""
   265 
   265 
   266     def __init__(self, filename):
   266     def __init__(self, filename):
   267         """Creates a new Config instance
   267         """Creates a new Config instance
   268 
   268 
   269         Arguments:
   269         Arguments:
   319                                        self.known_scheme),
   319                                        self.known_scheme),
   320                 'transport':       LCO(str, 'dovecot:',  self.get),
   320                 'transport':       LCO(str, 'dovecot:',  self.get),
   321             },
   321             },
   322         }
   322         }
   323 
   323 
       
   324     def configure(self, sections):
       
   325         raise NotImplementedError
       
   326 
   324     def load(self):
   327     def load(self):
   325         """Loads the configuration, read only.
   328         """Loads the configuration, read only.
   326 
   329 
   327         Raises a VMMConfigException if the configuration syntax is invalid.
   330         Raises a VMMConfigException if the configuration syntax is invalid.
   328         """
   331         """