- Timestamp:
- 05/07/05 20:53:15 (20 years ago)
- Location:
- tea4cups/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
tea4cups/trunk/NEWS
r626 r627 24 24 * 2.11 : 25 25 26 - Now works with old releases of Python (>= 2.1) 27 26 28 - More powerful error handling at startup time. 27 29 -
tea4cups/trunk/README
r617 r627 74 74 PyKota v1.22alpha2 or higher to avoid a race condition. 75 75 76 NB : Tea4CUPS requires a version of Python >= 2.1 77 76 78 ============================================================================= 77 79 -
tea4cups/trunk/tea4cups
r626 r627 284 284 branchbasename = "%s_" % branchtype.lower() 285 285 try : 286 globalbranches = [ (k, v) for (k, v) in self.config.items("global") if k.startswith(branchbasename) ] 286 # globalbranches = [ (k, v) for (k, v) in self.config.items("global") if k.startswith(branchbasename) ] 287 globalbranches = [ (k, self.config.get("global", k)) for k in self.config.options("global") if k.startswith(branchbasename) ] 287 288 except ConfigParser.NoSectionError, msg : 288 289 raise ConfigError, "Invalid configuration file : %s" % msg 289 290 try : 290 sectionbranches = [ (k, v) for (k, v) in self.config.items(printqueuename) if k.startswith(branchbasename) ] 291 # sectionbranches = [ (k, v) for (k, v) in self.config.items(printqueuename) if k.startswith(branchbasename) ] 292 sectionbranches = [ (k, self.config.get(printqueuename, k)) for k in self.config.options(printqueuename) if k.startswith(branchbasename) ] 291 293 except ConfigParser.NoSectionError, msg : 292 294 self.logInfo("No section for print queue %s : %s" % (printqueuename, msg))