Changeset 1280
- Timestamp:
- 01/12/04 19:17:36 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r1271 r1280 24 24 # 25 25 # $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 # 26 29 # Revision 1.20 2004/01/11 23:22:42 jalet 27 30 # Major code refactoring, it's way cleaner, and now allows automated addition … … 165 168 self.logdebug("Checking user %s's quota on printer %s" % (user.Name, printer.Name)) 166 169 action = self.warnUserPQuota(userpquota) 167 if action not in ["ALLOW", "WARN"] :168 return self.removeJob()169 170 self.logdebug("Job accounting begins.") 170 171 self.accounter.beginJob(userpquota) 172 else : 173 action = "ALLOW" 171 174 172 175 # 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 : 174 182 retcode = self.removeJob() 175 else :176 retcode = self.handleData()177 183 178 184 if policy == "OK" :