Show
Ignore:
Timestamp:
02/19/05 19:16:06 (19 years ago)
Author:
jalet
Message:

Optimize print job parsing by avoiding to pass the job's datas through
PyKota's internal parser if the special construct "software()" is used
with no argument in the 'accounter' directive.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/config.py

    r2066 r2074  
    2222# 
    2323# $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# 
    2429# Revision 1.61  2005/02/16 00:29:33  jalet 
    2530# Fixed the maxdenybanners directive. 
     
    393398                raise PyKotaConfigError, _("Invalid accounter %s for printer %s") % (fullaccounter, printername) 
    394399            if args.endswith(')') : 
    395                 args = args[:-1] 
    396             if not args : 
     400                args = args[:-1].strip() 
     401            if (accounter == "hardware") and not args : 
    397402                raise PyKotaConfigError, _("Invalid accounter %s for printer %s") % (fullaccounter, printername) 
    398403            return (accounter.lower(), args)