Changeset 3153 for pykota/trunk

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

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

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

    r3142 r3153  
    2222PyKota NEWS : 
    2323        
     24    - 1.26alpha4 (2007-03-12) : 
     25        
     26        - Don't ask for confirmation anymore if there isn't enough credits 
     27          to print or if the job was already denied for some reason. 
     28           
    2429    - 1.26alpha3 (2007-01-31) : 
    2530     
  • pykota/trunk/pykota/version.py

    r3141 r3153  
    2222# 
    2323 
    24 __version__ = "1.26alpha3_unofficial" 
     24__version__ = "1.26alpha4_unofficial" 
    2525 
    2626__doc__ = "PyKota : a complete Printing Quota Solution for CUPS." 
  • pykota/trunk/TODO

    r3147 r3153  
    2424        - --orderby and --order ASC|DESC for dumpykota (or --asc | --desc) 
    2525         
    26         - Don't ask for confirmation if the job will be rejected anyway 
    27           because of insufficient credits. 
    28            
    2926        - Document the PYKOTA_HOME environment variable. 
    3027