Changeset 1974 for pykota

Show
Ignore:
Timestamp:
12/07/04 17:54:02 (20 years ago)
Author:
jalet
Message:

Now logs as errors differences between computed and precomputed job's sizes

Location:
pykota/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1924 r1974  
    2424# 
    2525# $Log$ 
     26# Revision 1.81  2004/12/07 16:54:02  jalet 
     27# Now logs as errors differences between computed and precomputed job's sizes 
     28# 
    2629# Revision 1.80  2004/11/15 22:12:46  jalet 
    2730# Fix for the Fix !!! 
     
    538541                self.printMoreInfo(user, printer, _("Job size forced to 0 because printing is denied.")) 
    539542            else :     
    540                 jobsize = self.accounter.getJobSize(printer) + bannersize 
     543                jobsize = self.accounter.getJobSize(printer)  
     544                if self.softwareJobSize and (jobsize != self.softwareJobSize) : 
     545                    self.printInfo(_("Beware : computed job size (%s) != precomputed job size (%s)") % (jobsize, self.softwareJobSize), "error") 
     546                jobsize += bannersize 
    541547            self.printMoreInfo(user, printer, _("Job size : %i") % jobsize) 
    542548             
  • pykota/trunk/NEWS

    r1969 r1974  
    2222PyKota NEWS : 
    2323 
     24    - 1.21alpha12 : 
     25     
     26        - Now logs as errors the differences between precomputed and  
     27          computed job sizes. 
     28           
    2429    - 1.21alpha11 : 
    2530     
  • pykota/trunk/pykota/version.py

    r1967 r1974  
    2222# 
    2323 
    24 __version__ = "1.21alpha11_unofficial" 
     24__version__ = "1.21alpha12_unofficial" 
    2525 
    2626__doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""