Changeset 1624 for pykota/trunk/pykota/accounter.py
- Timestamp:
- 07/23/04 00:41:48 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounter.py
r1600 r1624 22 22 # 23 23 # $Log$ 24 # Revision 1.18 2004/07/22 22:41:48 jalet 25 # Hardware accounting for LPRng should be OK now. UNTESTED. 26 # 24 27 # Revision 1.17 2004/07/16 12:22:47 jalet 25 28 # LPRng support early version … … 103 106 return 0 104 107 105 def beginJob(self, userpquota) :108 def beginJob(self, printer) : 106 109 """Saves the computed job size.""" 107 110 # computes job's size … … 113 116 114 117 # get last job information for this printer 115 if not userpquota.Printer.LastJob.Exists :118 if not printer.LastJob.Exists : 116 119 # The printer hasn't been used yet, from PyKota's point of view 117 120 self.LastPageCounter = 0 … … 120 123 # Last lifetime page counter before actual job is 121 124 # 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) 123 126 124 def endJob(self, userpquota) : 127 def fakeBeginJob(self) : 128 """Do nothing.""" 129 pass 130 131 def endJob(self, printer) : 125 132 """Do nothing.""" 126 133 pass