VirtualMailManager/VirtualMailManager.py
branchv0.6.x
changeset 180 f8279c90e99c
parent 175 b241272eb1bd
child 182 84811fcc3c69
equal deleted inserted replaced
179:3d09c657e9e5 180:f8279c90e99c
   443         If no section is given (default) all options from all sections
   443         If no section is given (default) all options from all sections
   444         will be prompted.
   444         will be prompted.
   445 
   445 
   446         Keyword arguments:
   446         Keyword arguments:
   447         section -- the section to configure (default None):
   447         section -- the section to configure (default None):
   448             'database', 'maildir', 'bin' or 'misc'
       
   449         """
   448         """
   450         if section is None:
   449         if section is None:
   451             self.__Cfg.configure(self.__Cfg.getsections())
   450             self.__Cfg.configure(self.__Cfg.getsections())
   452         elif section in self.__Cfg.getsections():
   451         elif self.__Cfg.has_section(section):
   453             self.__Cfg.configure([section])
   452             self.__Cfg.configure([section])
   454         else:
   453         else:
   455             raise VMMException(_(u"Invalid section: ā€œ%sā€") % section,
   454             raise VMMException(_(u"Invalid section: ā€œ%sā€") % section,
   456                                ERR.INVALID_SECTION)
   455                                ERR.INVALID_SECTION)
   457 
   456