Show
Ignore:
Timestamp:
10/13/04 22:51:27 (20 years ago)
Author:
jalet
Message:

Made debugging levels be the same in cupspykota and lprngpykota.
Now outputs more information in informational messages : user, printer, jobid

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1819 r1820  
    2424# 
    2525# $Log$ 
     26# Revision 1.74  2004/10/13 20:51:27  jalet 
     27# Made debugging levels be the same in cupspykota and lprngpykota. 
     28# Now outputs more information in informational messages : user, printer, jobid 
     29# 
    2630# Revision 1.73  2004/10/13 16:56:45  jalet 
    2731# Added a space to the pattern to differentiate jobs which id begins with 
     
    410414            # we deny the job in this case (nothing to print anyway) 
    411415            if not self.jobSizeBytes : 
    412                 self.printInfo(_("Job contains no data. Printing is denied."), "warn") 
     416                self.printMoreInfo(user, printer, _("Job contains no data. Printing is denied."), "warn") 
    413417                action = "DENY" 
    414418            else :     
     
    422426            self.prehook(userpquota) 
    423427             
    424             self.printInfo(_("Job accounting begins.")) 
     428            self.printMoreInfo(user, printer, _("Job accounting begins.")) 
    425429            self.accounter.beginJob(printer) 
    426430        else :     
     
    443447            # stops accounting.  
    444448            self.accounter.endJob(printer) 
    445             self.printInfo(_("Job accounting ends.")) 
     449            self.printMoreInfo(user, printer, _("Job accounting ends.")) 
    446450                 
    447451            # retrieve the job size     
    448452            if action == "DENY" : 
    449453                jobsize = 0 
    450                 self.printInfo(_("Job size forced to 0 because printing is denied.")) 
     454                self.printMoreInfo(user, printer, _("Job size forced to 0 because printing is denied.")) 
    451455            else :     
    452456                jobsize = self.accounter.getJobSize(printer) 
    453             self.printInfo(_("Job size : %i") % jobsize) 
     457            self.printMoreInfo(user, printer, _("Job size : %i") % jobsize) 
    454458             
    455459            # update the quota for the current user on this printer  
     
    459463            # adds the current job to history     
    460464            printer.addJobToHistory(self.jobid, user, self.accounter.getLastPageCounter(), action, jobsize, jobprice, self.preserveinputfile, self.title, self.copies, self.options, clienthost, self.jobSizeBytes) 
    461             self.printInfo(_("Job added to history.")) 
     465            self.printMoreInfo(user, printer, _("Job added to history.")) 
    462466             
    463467            # exports some new environment variables