Changeset 908 for pykota

Show
Ignore:
Timestamp:
04/12/03 18:58:28 (22 years ago)
Author:
jalet
Message:

The workaround for HP printers was not correct, and there's probably no
correct way to workaround the problem because we can't save the internal
page counter in real time. The last job's size is unconditionnally set to
5 pages in this case.

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pykota

    r902 r908  
    2323# 
    2424# $Log$ 
     25# Revision 1.20  2003/04/12 16:58:28  jalet 
     26# The workaround for HP printers was not correct, and there's probably no 
     27# correct way to workaround the problem because we can't save the internal 
     28# page counter in real time. The last job's size is unconditionnally set to 
     29# 5 pages in this case. 
     30# 
    2531# Revision 1.19  2003/04/11 08:56:49  jalet 
    2632# Comment 
     
    213219                # its primary counter is only saved in a 10 increment, so 
    214220                # it may be lower than the last page counter saved in the 
    215                 # Quota Storage, we take the absolute value of the difference 
    216                 # this should take care of the "missing" pages. 
     221                # Quota Storage. We unconditionnally set 5 (five) pages 
     222                # as the last job's size. This is a mean. For more accurate 
     223                # accounting, don't switch off your HP printers ! 
    217224                # explanation at : http://web.mit.edu/source/third/lprng/doc/LPRng-HOWTO-15.html 
    218225                kotafilter.logger.log_message(_("Error in page count value %i for user %s on printer %s") % (jobsize, lastusername, kotafilter.printername), "error") 
    219                 jobsize = abs(jobsize) 
     226                jobsize = 5     # Workaround for HP printers' feature ! 
    220227                 
    221228            # update the quota for the previous user on this printer  
  • pykota/trunk/NEWS

    r907 r908  
    4848          may be lower than the real number of pages printed. 
    4949          See http://web.mit.edu/source/third/lprng/doc/LPRng-HOWTO-15.html 
     50          We unconditionnally set the last job's page count to five in this 
     51          case.  
     52          For a more accurate accounting, never switch your HP printers 
     53          off. 
    5054           
    5155        - A fix is provided for printers which only have a volatile   
    5256          page counter (reset to 0 every time you switch the printer on) 
    53           This should allow PyKota to work fine with HP Laserjet 
    54           4L/5L/6L. 
     57          This should allow PyKota to work reasonably fine with HP Laserjet 
     58          4L/5L/6L, not perfect, but better than nothing. 
    5559          See http://web.mit.edu/source/third/lprng/doc/LPRng-HOWTO-15.html 
     60          For a more accurate accounting, never switch your HP printers 
     61          off. 
    5662           
    5763        - A bug was fixed when edpykota --add was used with users who already