Show
Ignore:
Timestamp:
07/23/04 00:41:48 (20 years ago)
Author:
jalet
Message:

Hardware accounting for LPRng should be OK now. UNTESTED.

Files:
1 modified

Legend:

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

    r1600 r1624  
    2222# 
    2323# $Log$ 
     24# Revision 1.18  2004/07/22 22:41:48  jalet 
     25# Hardware accounting for LPRng should be OK now. UNTESTED. 
     26# 
    2427# Revision 1.17  2004/07/16 12:22:47  jalet 
    2528# LPRng support early version 
     
    103106            return 0 
    104107             
    105     def beginJob(self, userpquota) :     
     108    def beginJob(self, printer) :     
    106109        """Saves the computed job size.""" 
    107110        # computes job's size 
     
    113116         
    114117        # get last job information for this printer 
    115         if not userpquota.Printer.LastJob.Exists : 
     118        if not printer.LastJob.Exists : 
    116119            # The printer hasn't been used yet, from PyKota's point of view 
    117120            self.LastPageCounter = 0 
     
    120123            # Last lifetime page counter before actual job is  
    121124            # last page counter + last job size 
    122             self.LastPageCounter = int(userpquota.Printer.LastJob.PrinterPageCounter or 0) + int(userpquota.Printer.LastJob.JobSize or 0) 
     125            self.LastPageCounter = int(printer.LastJob.PrinterPageCounter or 0) + int(printer.LastJob.JobSize or 0) 
    123126         
    124     def endJob(self, userpquota) :     
     127    def fakeBeginJob(self) :     
     128        """Do nothing.""" 
     129        pass 
     130         
     131    def endJob(self, printer) :     
    125132        """Do nothing.""" 
    126133        pass