Changeset 2074 for pykota/trunk/pykota/config.py
- Timestamp:
- 02/19/05 19:16:06 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/config.py
r2066 r2074 22 22 # 23 23 # $Log$ 24 # Revision 1.62 2005/02/19 18:16:06 jalet 25 # Optimize print job parsing by avoiding to pass the job's datas through 26 # PyKota's internal parser if the special construct "software()" is used 27 # with no argument in the 'accounter' directive. 28 # 24 29 # Revision 1.61 2005/02/16 00:29:33 jalet 25 30 # Fixed the maxdenybanners directive. … … 393 398 raise PyKotaConfigError, _("Invalid accounter %s for printer %s") % (fullaccounter, printername) 394 399 if args.endswith(')') : 395 args = args[:-1] 396 if not args :400 args = args[:-1].strip() 401 if (accounter == "hardware") and not args : 397 402 raise PyKotaConfigError, _("Invalid accounter %s for printer %s") % (fullaccounter, printername) 398 403 return (accounter.lower(), args)