Changeset 2163

Show
Ignore:
Timestamp:
03/09/05 09:43:02 (18 years ago)
Author:
jerome
Message:

Fixed data dumper when dumping history in CUPS' page_log format,
because we only wrote a single line with the job's size on it,
instead of one line per page with the page number on it.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/dumper.py

    r2147 r2163  
    150150            copies = entry[fields["copies"]] or 1 
    151151            hostname = entry[fields["hostname"]] or "" 
    152             self.outfile.write("%s %s %s [%s] %s %s - %s\n" % (printername, username, jobid, jobdate, jobsize, copies, hostname)) 
     152            for pagenum in range(1, jobsize+1) : 
     153                self.outfile.write("%s %s %s [%s] %s %s - %s\n" % (printername, username, jobid, jobdate, pagenum, copies, hostname)) 
    153154         
    154155    def dumpXml(self, entries, datatype) :