Changeset 3124
- Timestamp:
- 12/13/06 20:51:10 (18 years ago)
- Location:
- pykota/trunk
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r3123 r3124 827 827 self.UserPQuota.incDenyBannerCounter() # increments the warning counter 828 828 self.exportUserInfo() 829 getattr(self, "%sBanner" % bannertype)(withaccounting) 829 if (self.Action == 'CANCEL' and not self.config.getPrintCancelledBanners()) : 830 self.logdebug("Print job cancelled, not printing a banner.", "warn") 831 else : 832 getattr(self, "%sBanner" % bannertype)(withaccounting) 830 833 self.logdebug("%s banner done." % bannertype.title()) 831 834 -
pykota/trunk/conf/pykota.conf.sample
r3122 r3124 1046 1046 1047 1047 1048 # If a job is cancelled, should any start or end banners still be printed 1049 # 1050 # This option can be set either globally or on a per printer basis. 1051 # If set to yes, any defined banners will be printed 1052 # If set to no, no banners will be printed 1053 # 1054 # This value defaults to yes 1055 # printcancelledbanners: yes 1056 1057 1048 1058 # StartingBanner : if defined will print a banner before the rest of the job 1049 1059 # is printed. The argument can be a printable file, or an executable file. -
pykota/trunk/pykota/config.py
r3035 r3124 439 439 else : 440 440 return value 441 441 442 def getPrintCancelledBanners(self, printername) : 443 """Returns 1 if a banner should be printed when a job is cancelled, else 0.""" 444 try : 445 return self.isTrue(self.getPrinterOption(printername, "printcancelledbanners")) 446 except PyKotaConfigError : 447 return 0 448 442 449 def getGraceDelay(self, printername) : 443 450 """Returns the grace delay in days."""