Changeset 2786 for pykota/trunk/bin/cupspykota
- Timestamp:
- 03/05/06 22:16:17 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/cupspykota
r2766 r2786 295 295 self.logdebug("Launching subprocess [%s] to overwrite the job ticket." \ 296 296 % jobticketcommand) 297 self.regainPriv() 297 298 inputfile = os.popen(jobticketcommand, "r") 298 299 for line in inputfile.xreadlines() : 299 300 line = line.strip() 300 if line == "DENY":301 self.logdebug("Seen DENY command.")301 if line in ("DENY", "AUTH=NO", "AUTH=IMPOSSIBLE") : 302 self.logdebug("Seen %s command." % line) 302 303 action = "DENY" 303 304 elif line == "CANCEL" : … … 313 314 action = None 314 315 inputfile.close() 316 self.dropPriv() 315 317 316 318 # now overwrite the job's ticket if new data was supplied