Changeset 1877 for pykota/trunk/bin/lprngpykota
- Timestamp:
- 10/25/04 17:14:59 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/lprngpykota
r1872 r1877 24 24 # 25 25 # $Log$ 26 # Revision 1.11 2004/10/25 15:14:59 jalet 27 # Fixed typo in code added to debug LPRng problem 28 # 26 29 # Revision 1.10 2004/10/24 09:06:46 jalet 27 30 # Added debug messages for LPRng support possible problem ??? … … 104 107 """First pass done here.""" 105 108 # first we have to check if previous job was correctly accounted for 106 self.logdebug("First pass begins : POLICY_%s => %s => %s" % (policy, getattr(printer, "Name"), getattr(user, "Name )))109 self.logdebug("First pass begins : POLICY_%s => %s => %s" % (policy, getattr(printer, "Name"), getattr(user, "Name"))) 107 110 if printer.LastJob.Exists and not printer.LastJob.JobSize : 108 111 # here we know that previous job wasn't accounted for correctly … … 187 190 self.logdebug("Job added to history during first pass : Job's size and price are still unknown.") 188 191 189 self.logdebug("First pass ends : ACTION_%s => %s => %s" % (action, getattr(printer, "Name"), getattr(user, "Name )))192 self.logdebug("First pass ends : ACTION_%s => %s => %s" % (action, getattr(printer, "Name"), getattr(user, "Name"))) 190 193 if action == "DENY" : 191 194 return self.removeJob() … … 197 200 # Last job for current printer has the same JobId than 198 201 # the current job, so we know we are in the second pass 199 self.logdebug("Second pass begins : POLICY_%s => %s => %s" % (policy, getattr(printer, "Name"), getattr(user, "Name )))202 self.logdebug("Second pass begins : POLICY_%s => %s => %s" % (policy, getattr(printer, "Name"), getattr(user, "Name"))) 200 203 if self.accounter.isSoftware : 201 204 # Software accounting method was used, and we are … … 253 256 254 257 # here hardware accounting was completed. 255 self.logdebug("Second pass ends : POLICY_%s => %s => %s" % (policy, getattr(printer, "Name"), getattr(user, "Name )))258 self.logdebug("Second pass ends : POLICY_%s => %s => %s" % (policy, getattr(printer, "Name"), getattr(user, "Name"))) 256 259 return self.acceptJob() 257 260