- Timestamp:
- 07/23/04 13:19:48 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 11 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/lprngpykota
r1624 r1629 24 24 # 25 25 # $Log$ 26 # Revision 1.5 2004/07/23 11:19:48 jalet 27 # 1.19beta is out ! 28 # 26 29 # Revision 1.4 2004/07/22 22:41:48 jalet 27 30 # Hardware accounting for LPRng should be OK now. UNTESTED. … … 82 85 """First pass done here.""" 83 86 # first we have to check if previous job was correctly accounted for 84 if (printer.LastJob.JobAction != "DENY") and (printer.LastJob.JobSize is None):87 if printer.LastJob.Exists and not printer.LastJob.JobSize : 85 88 # here we know that previous job wasn't accounted for correctly 86 89 # we are sure (?) that it was hardware accounting which was used … … 139 142 self.logdebug("Job size forced to 0 because printing was denied.") 140 143 141 if self.accounter.isSoftware:144 if (self.accounter.isSoftware) or (action == "DENY") : 142 145 # update the quota for the current user on this printer 143 146 self.logdebug("Job size : %i" % jobsize) … … 159 162 self.posthook(userpquota) 160 163 161 # here software accounting was completed.164 # here accounting was completed, either software, or hardware but over quota 162 165 else : 163 166 printer.addJobToHistory(self.jobid, user, self.accounter.getLastPageCounter(), action, filename=self.preserveinputfile, title=self.title, copies=self.copies, options=self.options, clienthost=clienthost, jobsizebytes=self.jobSizeBytes) … … 177 180 # in second pass, so all work is already done, 178 181 # now we just have to exit successfully 179 self.printInfo(_("Software accounting already done in first pass. Exiting.")) 180 else : 181 # Now we have to check if accounting was completely finished : 182 # if it is, then a big problem occured because with hardware 183 # accounting, only the second pass can know the job's size. 184 if (printer.LastJob.JobSize is not None) : 185 # this could only occur if configuration was modified 186 # between first and second pass, and accounter changed 187 # from software to hardware during this short (?) time. 188 raise PyKotaToolError, _("Hardware accounting already finished ! This should be impossible, please report this problem ASAP.") 189 182 self.printInfo(_("Software accounting already done in first pass. Ignoring.")) 183 elif printer.LastJob.JobAction == "DENY" : 184 # Hardware accounting method was used, but job 185 # was rejected during first pass, so nothing to do 186 self.printInfo(_("Hardware accounting already done in first pass. Ignoring.")) 187 else : 190 188 # here if user and userpquota are both None 191 189 # then it's a special second pass for a job -
pykota/trunk/man/edpykota.1
r1605 r1629 2 2 .TH EDPYKOTA "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 edpykota \- manual page for edpykota 1.19 alpha33_unofficial4 edpykota \- manual page for edpykota 1.19beta_unofficial 5 5 .SH DESCRIPTION 6 edpykota v1.19 alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 edpykota v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 A Print Quota editor for PyKota. 8 8 .PP -
pykota/trunk/man/pkhint.1
r1605 r1629 2 2 .TH PKHINT "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 pkhint \- manual page for pkhint 1.19 alpha33_unofficial4 pkhint \- manual page for pkhint 1.19beta_unofficial 5 5 .SH DESCRIPTION 6 pkhint v1.19 alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 pkhint v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 A tool to give hints on what accounting method is best for each printer. 8 8 .PP -
pykota/trunk/man/pkpgcounter.1
r1622 r1629 1 .TH PKPGCOUNTER "1" " April2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands"1 .TH PKPGCOUNTER "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 2 2 .SH NAME 3 3 pkpgcounter \- PyKota script to count pages in PostScript, PDF, PCL5 and PCL6 documents -
pykota/trunk/man/pkprinters.1
r1605 r1629 2 2 .TH PKPRINTERS "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 pkprinters \- manual page for pkprinters 1.19 alpha33_unofficial4 pkprinters \- manual page for pkprinters 1.19beta_unofficial 5 5 .SH DESCRIPTION 6 pkprinters v1.19 alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 pkprinters v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 A Printers Manager for PyKota. 8 8 .PP -
pykota/trunk/man/pykosd.1
r1605 r1629 2 2 .TH PYKOSD "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 pykosd \- manual page for pykosd 1.19 alpha33_unofficial4 pykosd \- manual page for pykosd 1.19beta_unofficial 5 5 .SH DESCRIPTION 6 pykosd v1.19 alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 pykosd v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 An OSD quota monitor for PyKota. 8 8 .PP … … 19 19 Prints this message then exits. 20 20 .TP 21 \fB\-c\fR | \fB\-\-color\fR #rrggbb Sets the color to use for display as an hexadecimal 22 triplet, for example #FF0000 is 100% red. 23 Defaults to 100% green (#00FF00). 24 .TP 21 25 \fB\-d\fR | \fB\-\-duration\fR d 22 26 Sets the duration of the display in seconds. 23 27 Defaults to 3 seconds. 28 .TP 29 \fB\-f\fR | \fB\-\-font\fR f 30 Sets the font to use for display. 31 Defaults to the Python OSD library's default. 24 32 .TP 25 33 \fB\-l\fR | \fB\-\-loop\fR n -
pykota/trunk/man/pykotme.1
r1605 r1629 2 2 .TH PYKOTME "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 pykotme \- manual page for pykotme 1.19 alpha33_unofficial4 pykotme \- manual page for pykotme 1.19beta_unofficial 5 5 .SH DESCRIPTION 6 pykotme v1.19 alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 pykotme v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 .PP 8 8 Gives print quotes to users. -
pykota/trunk/man/repykota.1
r1605 r1629 2 2 .TH REPYKOTA "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 repykota \- manual page for repykota 1.19 alpha33_unofficial4 repykota \- manual page for repykota 1.19beta_unofficial 5 5 .SH DESCRIPTION 6 repykota v1.19 alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 repykota v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 .PP 8 8 Generates print quota reports. -
pykota/trunk/man/warnpykota.1
r1605 r1629 2 2 .TH WARNPYKOTA "1" "July 2004" "C@LL - Conseil Internet & Logiciels Libres" "User Commands" 3 3 .SH NAME 4 warnpykota \- manual page for warnpykota 1.19 alpha33_unofficial4 warnpykota \- manual page for warnpykota 1.19beta_unofficial 5 5 .SH DESCRIPTION 6 warnpykota v1.19 alpha33_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres6 warnpykota v1.19beta_unofficial (c) 2003-2004 C@LL - Conseil Internet & Logiciels Libres 7 7 .PP 8 8 Sends mail to users over print quota. -
pykota/trunk/NEWS
r1622 r1629 22 22 PyKota NEWS : 23 23 24 - 1.19beta : 25 26 - LPRng support for both software and hardware accounting seems 27 to be OK. 28 29 - Translation files fixed because of fuzzy matching problem. 30 24 31 - 1.19alpha35 : 25 32 -
pykota/trunk/pykota/version.py
r1622 r1629 22 22 # 23 23 24 __version__ = "1.19 alpha35_unofficial"24 __version__ = "1.19beta_unofficial" 25 25 26 26 __doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""