Changeset 1278 for pykota/trunk/cgi-bin

Show
Ignore:
Timestamp:
01/12/04 16:28:45 (20 years ago)
Author:
jalet
Message:

Now can output the user's history on several printers at the same time.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/cgi-bin/printquota.cgi

    r1276 r1278  
    2323# 
    2424# $Log$ 
     25# Revision 1.25  2004/01/12 15:28:45  jalet 
     26# Now can output the user's history on several printers at the same time. 
     27# 
    2528# Revision 1.24  2004/01/12 14:52:03  jalet 
    2629# Cuts the date string 
     
    271274                    elif job.JobAction == "WARN" :     
    272275                        oddevenclass = "warn" 
    273                     self.report.append('<tr class="%s">%s</tr>' % (oddevenclass, "".join(["<td>%s</td>" % h for h in (job.JobDate[:19], job.User.Name, job.Printer.Name, job.PrinterPageCounter, job.JobId, job.JobSize, job.JobPrice, job.JobCopies, job.JobTitle, job.JobFileName, job.JobOptions, job.JobAction)]))) 
     276                    username = '<a href="%s?%s">%s</a>' % (os.environ.get("SCRIPT_NAME", ""), urllib.urlencode({"history" : 1, "username" : job.User.Name}), job.User.Name) 
     277                    self.report.append('<tr class="%s">%s</tr>' % (oddevenclass, "".join(["<td>%s</td>" % h for h in (job.JobDate[:19], username, job.Printer.Name, job.PrinterPageCounter, job.JobId, job.JobSize, job.JobPrice, job.JobCopies, job.JobTitle, job.JobFileName, job.JobOptions, job.JobAction)]))) 
    274278                self.report.append('</table>') 
    275279                dico = { "history" : 1,