Changeset 3153 for pykota/trunk/bin

Show
Ignore:
Timestamp:
03/12/07 20:46:57 (17 years ago)
Author:
jerome
Message:

Don't ask for confirmation anymore if there's not enough credits
to print.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r3146 r3153  
    11051105         
    11061106        if self.Action not in ("DENY", "CANCEL") :  
    1107             if not self.didUserConfirm() : 
    1108                 self.Action = "CANCEL" 
    1109                 self.Reason = _("Print job cancelled.") 
    1110                 os.environ["PYKOTASTATUS"] = "CANCELLED" 
    1111                  
    1112         if self.Action not in ("DENY", "CANCEL") :  
    11131107            if self.Printer.MaxJobSize and (self.softwareJobSize > self.Printer.MaxJobSize) : 
    11141108                # This printer was set to refuse jobs this large. 
     
    11641158                        self.Reason = self.config.getSoftWarn(self.PrinterName) 
    11651159             
     1160        # If job still allowed to print, should we ask for confirmation ?     
     1161        if self.Action not in ("DENY", "CANCEL") :  
     1162            if not self.didUserConfirm() : 
     1163                self.Action = "CANCEL" 
     1164                self.Reason = _("Print job cancelled.") 
     1165                os.environ["PYKOTASTATUS"] = "CANCELLED" 
     1166                 
    11661167        # exports some new environment variables 
    11671168        self.exportReason()