Changeset 2879
- Timestamp:
- 05/03/06 20:40:18 (19 years ago)
- Location:
- pykota/trunk
- Files:
-
- 5 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r2829 r2879 803 803 now = DateTime.now() 804 804 try : 805 previous = DateTime.ISO.ParseDateTime(s elf.Printer.LastJob.JobDate).localtime()805 previous = DateTime.ISO.ParseDateTime(str(self.Printer.LastJob.JobDate)).localtime() 806 806 except : 807 807 previous = now -
pykota/trunk/cgi-bin/printquota.cgi
r2633 r2879 264 264 job.JobPages)]))) 265 265 self.report.append('</table>') 266 d = DateTime.ISO.ParseDateTime( job.JobDate)266 d = DateTime.ISO.ParseDateTime(str(job.JobDate)) 267 267 dico = { "history" : 1, 268 268 "datelimit" : "%04i%02i%02i %02i:%02i:%02i" % (d.year, d.month, d.day, d.hour, d.minute, d.second), -
pykota/trunk/pykota/dumper.py
r2830 r2879 254 254 username = entry[fields["username"]] 255 255 jobid = entry[fields["jobid"]] 256 jobdate = DateTime.ISO.ParseDateTime( entry[fields["jobdate"]])256 jobdate = DateTime.ISO.ParseDateTime(str(entry[fields["jobdate"]])) 257 257 gmtoffset = jobdate.gmtoffset() 258 258 jobdate = "%s %+03i00" % (jobdate.strftime("%d/%b/%Y:%H:%M:%S"), gmtoffset.hour) -
pykota/trunk/pykota/reporter.py
r2692 r2879 92 92 elif quota.DateLimit is not None : 93 93 now = DateTime.now() 94 datelimit = DateTime.ISO.ParseDateTime( quota.DateLimit)94 datelimit = DateTime.ISO.ParseDateTime(str(quota.DateLimit)) 95 95 if now >= datelimit : 96 96 datelimit = "DENY" -
pykota/trunk/pykota/tool.py
r2867 r2879 524 524 now = DateTime.now() 525 525 if userpquota.DateLimit is not None : 526 datelimit = DateTime.ISO.ParseDateTime( userpquota.DateLimit)526 datelimit = DateTime.ISO.ParseDateTime(str(userpquota.DateLimit)) 527 527 else : 528 528 datelimit = now + self.config.getGraceDelay(printer.Name) … … 583 583 now = DateTime.now() 584 584 if grouppquota.DateLimit is not None : 585 datelimit = DateTime.ISO.ParseDateTime( grouppquota.DateLimit)585 datelimit = DateTime.ISO.ParseDateTime(str(grouppquota.DateLimit)) 586 586 else : 587 587 datelimit = now + self.config.getGraceDelay(printer.Name)