Changeset 887 for pykota/trunk/bin
- Timestamp:
- 04/08/03 22:38:08 (22 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pykota
r873 r887 23 23 # 24 24 # $Log$ 25 # Revision 1.16 2003/04/08 20:38:08 jalet 26 # The last job Id is saved now for each printer, this will probably 27 # allow other accounting methods in the future. 28 # 25 29 # Revision 1.15 2003/03/29 13:45:27 jalet 26 30 # GPL paragraphs were incorrectly (from memory) copied into the sources. … … 131 135 132 136 # 137 # According to CUPS documentation, the job id is the second command line argument 138 jobid = sys.argv[1].strip() 139 140 # 133 141 # According to CUPS documentation, the username is the third command line argument 134 142 username = sys.argv[2].strip() … … 155 163 else : 156 164 # get last values from Quota Storage 157 (lastpagecounter, last username) = (pgc["pagecounter"], pgc["lastusername"])165 (lastpagecounter, lastjobid, lastusername) = (pgc["pagecounter"], pgc["lastjobid"], pgc["lastusername"]) 158 166 159 167 # if printer is off then we assume the correct counter value is the last one … … 163 171 # Update the last page counter and last username in the Quota Storage backend 164 172 # set them to current user and 165 kotafilter.storage.updatePrinterPageCounter(kotafilter.printername, username, counterbeforejob )173 kotafilter.storage.updatePrinterPageCounter(kotafilter.printername, username, counterbeforejob, jobid) 166 174 167 175 # Was the printer ever used ?