VirtualMailManager/Config.py
changeset 69 0c124160a991
parent 68 7ae95b9938c4
child 76 14c0a092d7d2
equal deleted inserted replaced
68:7ae95b9938c4 69:0c124160a991
   108 
   108 
   109     def getsections(self):
   109     def getsections(self):
   110         """Return a list with all configurable sections."""
   110         """Return a list with all configurable sections."""
   111         return self.__VMMsections[:-1]
   111         return self.__VMMsections[:-1]
   112 
   112 
       
   113     def get(self, section, option, raw=False, vars=None):
       
   114         return unicode(ConfigParser.get(self, section, option, raw, vars),
       
   115                 ENCODING, 'replace')
       
   116 
   113     def configure(self, sections):
   117     def configure(self, sections):
   114         """Interactive method for configuring all options in the given section
   118         """Interactive method for configuring all options in the given section
   115 
   119 
   116         Keyword arguments:
   120         Keyword arguments:
   117         sections -- list of strings
   121         sections -- list of strings