Changeset 3141

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.

Location:
pykota/trunk
Files:
3 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                     
  • pykota/trunk/NEWS

    r3140 r3141  
    2222PyKota NEWS : 
    2323        
     24    - 1.26alpha3 (2007-01-31) : 
     25     
     26        - Doesn't print banners anymore when the user cancelled the print job. 
     27         
    2428    - 1.26alpha2 (2007-01-18) : 
    2529     
  • pykota/trunk/pykota/version.py

    r3135 r3141  
    2222# 
    2323 
    24 __version__ = "1.26alpha2_unofficial" 
     24__version__ = "1.26alpha3_unofficial" 
    2525 
    2626__doc__ = "PyKota : a complete Printing Quota Solution for CUPS."