Changeset 1524
- Timestamp:
- 06/06/04 00:42:41 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/cgi-bin/printquota.cgi
r1502 r1524 23 23 # 24 24 # $Log$ 25 # Revision 1.28 2004/06/05 22:42:41 jalet 26 # Improved web history reports 27 # 25 28 # Revision 1.27 2004/05/26 14:49:40 jalet 26 29 # First try at saving the job-originating-hostname in the database … … 269 272 else : 270 273 self.report.append('<table class="pykotatable" border="1">') 271 headers = ["Date", " User", "Printer", "PageCounter", "JobId", "JobSize", "JobPrice", "Copies", "Title", "Filename", "Options", "HostName", "Action"]274 headers = ["Date", "Action", "User", "Printer", "Hostname", "JobId", "JobSize", "JobPrice", "Copies", "JobBytes", "PageCounter", "Title", "Filename", "Options"] 272 275 self.report.append('<tr class="pykotacolsheader">%s</tr>' % "".join(["<th>%s</th>" % h for h in headers])) 273 276 oddeven = 0 … … 283 286 oddevenclass = "warn" 284 287 username = '<a href="%s?%s">%s</a>' % (os.environ.get("SCRIPT_NAME", ""), urllib.urlencode({"history" : 1, "username" : job.UserName}), job.UserName) 285 self.report.append('<tr class="%s">%s</tr>' % (oddevenclass, "".join(["<td>%s</td>" % h for h in (job.JobDate[:19], username, job.PrinterName, job.PrinterPageCounter, job.JobId, job.JobSize, job.JobPrice, job.JobCopies, job.JobTitle, job.JobFileName, job.JobOptions, job.JobHostName, job.JobAction)])))288 self.report.append('<tr class="%s">%s</tr>' % (oddevenclass, "".join(["<td>%s</td>" % (h or " ") for h in (job.JobDate[:19], job.JobAction, username, job.PrinterName, job.JobHostName, job.JobId, job.JobSize, job.JobPrice, job.JobCopies, job.JobSizeBytes, job.PrinterPageCounter, job.JobTitle, job.JobFileName, job.JobOptions)]))) 286 289 self.report.append('</table>') 287 290 dico = { "history" : 1, -
pykota/trunk/NEWS
r1522 r1524 31 31 but doesn't reflect price paid for jobs, which appear 32 32 in the jobs history instead. 33 34 - Jobs history web reports now include the job's size in 35 bytes. Also columns were reordered to render the report 36 more easily readable. 33 37 34 38 - 1.19alpha17 :