Changeset 3124 for pykota/trunk/bin

Show
Ignore:
Timestamp:
12/13/06 20:51:10 (18 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/bin/cupspykota

    r3123 r3124  
    827827                self.UserPQuota.incDenyBannerCounter() # increments the warning counter 
    828828                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) 
    830833        self.logdebug("%s banner done." % bannertype.title()) 
    831834