Changeset 1499 for pykota/trunk/bin

Show
Ignore:
Timestamp:
05/25/04 11:15:15 (21 years ago)
Author:
jalet
Message:

accounter.py : old code deleted
the rest : now exports PYKOTAPRECOMPUTEDJOBSIZE and PYKOTAPRECOMPUTEDJOBPRICE

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1498 r1499  
    2424# 
    2525# $Log$ 
     26# Revision 1.52  2004/05/25 09:15:13  jalet 
     27# accounter.py : old code deleted 
     28# the rest : now exports PYKOTAPRECOMPUTEDJOBSIZE and PYKOTAPRECOMPUTEDJOBPRICE 
     29# 
    2630# Revision 1.51  2004/05/25 08:31:16  jalet 
    2731# Heavy CPU usage seems to be fixed at least ! 
     
    265269            if self.config.getPrinterEnforcement(printer.Name) == "STRICT" : 
    266270                self.softwareJobSize = self.precomputeJobSize() 
    267                 self.logdebug("Precomputed job's size is : %s pages" % self.softwareJobSize) 
    268271                self.softwareJobPrice = userpquota.computeJobPrice(self.softwareJobSize) 
     272                self.logdebug("Precomputed job's size is %s pages, price is %s units" % (self.softwareJobSize, self.softwareJobPrice)) 
     273            os.putenv("PYKOTAPRECOMPUTEDJOBSIZE", str(self.softwareJobSize))     
     274            os.putenv("PYKOTAPRECOMPUTEDJOBPRICE", str(self.softwareJobPrice))     
    269275            action = self.warnUserPQuota(userpquota) 
    270276