Changeset 571 for tea4cups/trunk/cupsoftee
- Timestamp:
- 03/11/05 16:56:39 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/cupsoftee
r570 r571 81 81 raise ConfigError, "Option %s not found in section global of %s" % (option, self.conffile) 82 82 83 def get PrinterOption(self, sectionname, option) :83 def getSectionOption(self, sectionname, option) : 84 84 """Returns an option from the printer section, or the global section, or raises a ConfigError.""" 85 85 globaloption = self.getGlobalOption(option, ignore=1) … … 91 91 else : 92 92 raise ConfigError, "Option %s not found in section [%s] of %s" % (option, sectionname, self.conffile) 93 94 def getSectionNames(self) : 95 """Returns the list of sections, i.e. all sections names minus 'global'.""" 96 return [pname for pname in self.config.sections() if pname != "global"] 93 97 94 98 def discoverOtherBackends(self) :