equal
deleted
inserted
replaced
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 |