Changeset 3141 for pykota/trunk/bin

Show
Ignore:
Timestamp:
01/31/07 16:00:41 (17 years ago)
Author:
jerome
Message:

Fixes a problem where banners would still be printed even if the user cancelled the print job.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r3136 r3141  
    11731173        self.BannerSize = 0 
    11741174        accountbanner = self.config.getAccountBanner(self.PrinterName) 
    1175         if accountbanner in ["ENDING", "NONE"] : 
     1175        if (self.Action != "CANCEL") and accountbanner in ["ENDING", "NONE"] : 
    11761176            self.handleBanner("starting", 0) 
    11771177         
     
    11871187         
    11881188        # handle starting banner pages with accounting 
    1189         if accountbanner in ["STARTING", "BOTH"] : 
     1189        if (self.Action != "CANCEL") and accountbanner in ["STARTING", "BOTH"] : 
    11901190            if not self.gotSigTerm : 
    11911191                self.handleBanner("starting", 1) 
     
    12011201         
    12021202        # handle ending banner pages with accounting 
    1203         if accountbanner in ["ENDING", "BOTH"] : 
     1203        if (self.Action != "CANCEL") and accountbanner in ["ENDING", "BOTH"] : 
    12041204            if not self.gotSigTerm : 
    12051205                self.handleBanner("ending", 1) 
     
    12891289         
    12901290        # handle ending banner pages without accounting 
    1291         if accountbanner in ["STARTING", "NONE"] : 
     1291        if (self.Action != "CANCEL") and accountbanner in ["STARTING", "NONE"] : 
    12921292            self.handleBanner("ending", 0) 
    12931293