Show
Ignore:
Timestamp:
12/13/06 20:51:10 (17 years ago)
Author:
matt
Message:

If a job is cancelled (e.g. by pknotify/pykoticon), make printing start and end banners optional.

Files:
1 modified

Legend:

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

    r3035 r3124  
    439439        else :     
    440440            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              
    442449    def getGraceDelay(self, printername) :     
    443450        """Returns the grace delay in days."""