Show
Ignore:
Timestamp:
06/04/04 01:14:11 (20 years ago)
Author:
jalet
Message:

Now stores the job's size in bytes in the database.
Preliminary work on payments storage : database schemas are OK now,
but no code to store payments yet.
Removed schema picture, not relevant anymore.

Files:
1 modified

Legend:

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

    r1502 r1520  
    2222# 
    2323# $Log$ 
     24# Revision 1.53  2004/06/03 23:14:10  jalet 
     25# Now stores the job's size in bytes in the database. 
     26# Preliminary work on payments storage : database schemas are OK now, 
     27# but no code to store payments yet. 
     28# Removed schema picture, not relevant anymore. 
     29# 
    2430# Revision 1.52  2004/05/26 14:49:57  jalet 
    2531# First try at saving the job-originating-hostname in the database 
     
    303309            raise AttributeError, name 
    304310             
    305     def addJobToHistory(self, jobid, user, pagecounter, action, jobsize=None, jobprice=None, filename=None, title=None, copies=None, options=None, clienthost=None) : 
     311    def addJobToHistory(self, jobid, user, pagecounter, action, jobsize=None, jobprice=None, filename=None, title=None, copies=None, options=None, clienthost=None, jobsizebytes=None) : 
    306312        """Adds a job to the printer's history.""" 
    307         self.parent.writeJobNew(self, user, jobid, pagecounter, action, jobsize, jobprice, filename, title, copies, options, clienthost) 
     313        self.parent.writeJobNew(self, user, jobid, pagecounter, action, jobsize, jobprice, filename, title, copies, options, clienthost, jobsizebytes) 
    308314        # TODO : update LastJob object ? Probably not needed. 
    309315         
     
    449455        self.JobId = None 
    450456        self.PrinterPageCounter = None 
     457        self.JobSizeBytes = None 
    451458        self.JobSize = None 
    452459        self.JobAction = None