Changeset 3034
- Timestamp:
- 10/12/06 23:21:48 (18 years ago)
- Location:
- pykota/trunk/pykota
- Files:
-
- 1 added
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/config.py
r3031 r3034 192 192 def getPreAccounterBackend(self, printername) : 193 193 """Returns the preaccounter backend to use for a given printer.""" 194 validaccounters = [ "software", " bw", "cmyk", "cmy", "rgb" ]194 validaccounters = [ "software", "ink" ] 195 195 try : 196 196 fullaccounter = self.getPrinterOption(printername, "preaccounter").strip() … … 207 207 if args.endswith(')') : 208 208 args = args[:-1].strip() 209 if (vac == "ink") and not args : 210 raise PyKotaConfigError, _("Invalid preaccounter %s for printer %s") % (fullaccounter, printername) 209 211 return (vac, args) 210 212 raise PyKotaConfigError, _("Option preaccounter in section %s only supports values in %s") % (printername, str(validaccounters)) … … 212 214 def getAccounterBackend(self, printername) : 213 215 """Returns the accounter backend to use for a given printer.""" 214 validaccounters = [ "hardware", "software", " bw", "cmyk", "cmy", "rgb" ]216 validaccounters = [ "hardware", "software", "ink" ] 215 217 try : 216 218 fullaccounter = self.getPrinterOption(printername, "accounter").strip() … … 227 229 if args.endswith(')') : 228 230 args = args[:-1].strip() 229 if ( accounter == "hardware") and not args :231 if (vac in ("hardware", "ink")) and not args : 230 232 raise PyKotaConfigError, _("Invalid accounter %s for printer %s") % (fullaccounter, printername) 231 233 return (vac, args)