Changeset 1200 for pykota/trunk/pykota/storages/pgstorage.py
- Timestamp:
- 11/21/03 15:28:46 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/pgstorage.py
r1179 r1200 22 22 # 23 23 # $Log$ 24 # Revision 1.22 2003/11/21 14:28:46 jalet 25 # More complete job history. 26 # 24 27 # Revision 1.21 2003/11/12 13:06:38 jalet 25 28 # Bug fix wrt no user/group name command line argument to edpykota … … 447 450 self.doModify("UPDATE jobhistory SET jobsize=%s WHERE id=%s" % (self.doQuote(jobsize), self.doQuote(lastjob.ident))) 448 451 449 def writeJobNew(self, printer, user, jobid, pagecounter, action, jobsize=None ) :452 def writeJobNew(self, printer, user, jobid, pagecounter, action, jobsize=None, filename=None, title=None, copies=None, options=None) : 450 453 """Adds a job in a printer's history.""" 451 454 if (not self.disablehistory) or (not printer.LastJob.Exists) : 452 455 if jobsize is not None : 453 self.doModify("INSERT INTO jobhistory (userid, printerid, jobid, pagecounter, action, jobsize ) VALUES (%s, %s, %s, %s, %s, %s)" % (self.doQuote(user.ident), self.doQuote(printer.ident), self.doQuote(jobid), self.doQuote(pagecounter), self.doQuote(action), self.doQuote(jobsize)))456 self.doModify("INSERT INTO jobhistory (userid, printerid, jobid, pagecounter, action, jobsize, filename, title, copies, options) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s)" % (self.doQuote(user.ident), self.doQuote(printer.ident), self.doQuote(jobid), self.doQuote(pagecounter), self.doQuote(action), self.doQuote(jobsize), self.doQuote(filename), self.doQuote(title), self.doQuote(copies), self.doQuote(options))) 454 457 else : 455 self.doModify("INSERT INTO jobhistory (userid, printerid, jobid, pagecounter, action ) VALUES (%s, %s, %s, %s, %s)" % (self.doQuote(user.ident), self.doQuote(printer.ident), self.doQuote(jobid), self.doQuote(pagecounter), self.doQuote(action)))458 self.doModify("INSERT INTO jobhistory (userid, printerid, jobid, pagecounter, action, filename, title, copies, options) VALUES (%s, %s, %s, %s, %s)" % (self.doQuote(user.ident), self.doQuote(printer.ident), self.doQuote(jobid), self.doQuote(pagecounter), self.doQuote(action), self.doQuote(filename), self.doQuote(title), self.doQuote(copies), self.doQuote(options))) 456 459 else : 457 460 # here we explicitly want to reset jobsize to NULL if needed