Changeset 2220 for pykota/trunk/cgi-bin
- Timestamp:
- 04/28/05 09:20:20 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/cgi-bin/printquota.cgi
r2210 r2220 183 183 else : 184 184 hostname = None 185 if self.form.has_key("billingcode") : 186 billingcode = self.form["billingcode"].value 187 else : 188 billingcode = None 185 189 self.report = ["<h2>%s</h2>" % _("History")] 186 history = self.storage.retrieveHistory(user, printer, datelimit, hostname )190 history = self.storage.retrieveHistory(user, printer, datelimit, hostname, billingcode) 187 191 if not history : 188 192 self.report.append("<h3>%s</h3>" % _("Empty")) … … 213 217 else : 214 218 hostname_url = None 215 self.report.append('<tr class="%s">%s</tr>' % (oddevenclass, "".join(["<td>%s</td>" % (h or " ") for h in (job.JobDate[:19], job.JobAction, username_url, printername_url, hostname_url, job.JobId, job.JobSize, job.JobPrice, job.JobCopies, job.JobSizeBytes, job.PrinterPageCounter, job.JobTitle, job.JobFileName, job.JobOptions, job.JobMD5Sum, job.JobBillingCode, job.JobPages)]))) 219 if job.JobBillingCode : 220 billingcode_url = '<a href="%s?%s">%s</a>' % (os.environ.get("SCRIPT_NAME", ""), urllib.urlencode({"history" : 1, "billingcode" : job.JobBillingCode}), job.JobBillingCode) 221 else : 222 billingcode_url = None 223 self.report.append('<tr class="%s">%s</tr>' % \ 224 (oddevenclass, \ 225 "".join(["<td>%s</td>" % (h or " ") \ 226 for h in (job.JobDate[:19], \ 227 job.JobAction, \ 228 username_url, \ 229 printername_url, \ 230 hostname_url, \ 231 job.JobId, \ 232 job.JobSize, \ 233 job.JobPrice, \ 234 job.JobCopies, \ 235 job.JobSizeBytes, \ 236 job.PrinterPageCounter, \ 237 job.JobTitle, \ 238 job.JobFileName, \ 239 job.JobOptions, \ 240 job.JobMD5Sum, \ 241 billingcode_url, \ 242 job.JobPages)]))) 216 243 self.report.append('</table>') 217 244 dico = { "history" : 1,