Show
Ignore:
Timestamp:
07/28/05 17:58:30 (19 years ago)
Author:
jerome
Message:

Added the overwrite_jobticket directive.
Severity : How Powerful !!! :-)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r2389 r2393  
    227227                (bcode, clienthost) = self.getJobInfosFromPageLog(cupsdconf, printer.Name, user.Name, self.jobid) 
    228228            self.logdebug("Client Hostname : %s" % (clienthost or "Unknown"))     
     229             
     230            bcode = self.overwrittenBillingCode or bcode 
    229231            self.logdebug("Billing Code : %s" % (bcode or "None"))     
    230232             
     
    299301                billingcode = None 
    300302             
     303            # Should we cancel the job in any case (because job ticket 
     304            # was overwritten) ? 
     305            if self.mustDeny : 
     306                action = "DENY" 
     307                 
    301308            # exports some new environment variables 
    302309            os.environ["PYKOTAACTION"] = action