Changeset 1820 for pykota/trunk/bin/cupspykota
- Timestamp:
- 10/13/04 22:51:27 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r1819 r1820 24 24 # 25 25 # $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 # 26 30 # Revision 1.73 2004/10/13 16:56:45 jalet 27 31 # Added a space to the pattern to differentiate jobs which id begins with … … 410 414 # we deny the job in this case (nothing to print anyway) 411 415 if not self.jobSizeBytes : 412 self.print Info(_("Job contains no data. Printing is denied."), "warn")416 self.printMoreInfo(user, printer, _("Job contains no data. Printing is denied."), "warn") 413 417 action = "DENY" 414 418 else : … … 422 426 self.prehook(userpquota) 423 427 424 self.print Info(_("Job accounting begins."))428 self.printMoreInfo(user, printer, _("Job accounting begins.")) 425 429 self.accounter.beginJob(printer) 426 430 else : … … 443 447 # stops accounting. 444 448 self.accounter.endJob(printer) 445 self.print Info(_("Job accounting ends."))449 self.printMoreInfo(user, printer, _("Job accounting ends.")) 446 450 447 451 # retrieve the job size 448 452 if action == "DENY" : 449 453 jobsize = 0 450 self.print Info(_("Job size forced to 0 because printing is denied."))454 self.printMoreInfo(user, printer, _("Job size forced to 0 because printing is denied.")) 451 455 else : 452 456 jobsize = self.accounter.getJobSize(printer) 453 self.print Info(_("Job size : %i") % jobsize)457 self.printMoreInfo(user, printer, _("Job size : %i") % jobsize) 454 458 455 459 # update the quota for the current user on this printer … … 459 463 # adds the current job to history 460 464 printer.addJobToHistory(self.jobid, user, self.accounter.getLastPageCounter(), action, jobsize, jobprice, self.preserveinputfile, self.title, self.copies, self.options, clienthost, self.jobSizeBytes) 461 self.print Info(_("Job added to history."))465 self.printMoreInfo(user, printer, _("Job added to history.")) 462 466 463 467 # exports some new environment variables