Changeset 1696 for pykota/trunk/bin
- Timestamp:
- 09/02/04 16:40:13 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/lprngpykota
r1629 r1696 24 24 # 25 25 # $Log$ 26 # Revision 1.6 2004/09/02 14:40:13 jalet 27 # Another bunch of LPRng fixes 28 # 26 29 # Revision 1.5 2004/07/23 11:19:48 jalet 27 30 # 1.19beta is out ! … … 80 83 return [line[11:] for line in os.environ.get("HF", "").split() if line.startswith("remotehost=")][0] 81 84 except IndexError : 82 return None 85 try : 86 return [line[1:] for line in os.environ.get("CONTROL", "").split() if line.startswith("H")][0] 87 except IndexError : 88 return None 83 89 84 90 def firstPass(self, policy, printer, user, userpquota) : … … 244 250 return self.acceptJob() 245 251 else : 246 if (not printer.LastJob.Exists) or (printer.LastJob.JobId != self.jobid) : 252 if printer.LastJob.Exists and (printer.LastJob.JobId == self.jobid) : 253 # here we know we are in second pass. 254 return self.secondPass(policy, printer, user, userpquota) 255 else : 247 256 # Last job for current printer has a different JobId than 248 257 # the current job, so we know we are in the first pass. 249 258 return self.firstPass(policy, printer, user, userpquota) 250 else :251 # and here we know we are in second pass.252 return self.secondPass(policy, printer, user, userpquota)253 259 254 260 if __name__ == "__main__" :