Changeset 1280

Show
Ignore:
Timestamp:
01/12/04 19:17:36 (21 years ago)
Author:
jalet
Message:

Denied jobs weren't stored into the history anymore, this is now fixed.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1271 r1280  
    2424# 
    2525# $Log$ 
     26# Revision 1.21  2004/01/12 18:17:36  jalet 
     27# Denied jobs weren't stored into the history anymore, this is now fixed. 
     28# 
    2629# Revision 1.20  2004/01/11 23:22:42  jalet 
    2730# Major code refactoring, it's way cleaner, and now allows automated addition 
     
    165168            self.logdebug("Checking user %s's quota on printer %s" % (user.Name, printer.Name)) 
    166169            action = self.warnUserPQuota(userpquota) 
    167             if action not in ["ALLOW", "WARN"] :     
    168                 return self.removeJob() 
    169170            self.logdebug("Job accounting begins.") 
    170171            self.accounter.beginJob(userpquota) 
     172        else :     
     173            action = "ALLOW" 
    171174             
    172175        # pass the job's data to the real backend     
    173         if gotSigTerm : 
     176        if action in ["ALLOW", "WARN"] : 
     177            if gotSigTerm : 
     178                retcode = self.removeJob() 
     179            else :     
     180                retcode = self.handleData()         
     181        else :         
    174182            retcode = self.removeJob() 
    175         else :     
    176             retcode = self.handleData()         
    177183         
    178184        if policy == "OK" :