Changeset 1872
- Timestamp:
- 10/24/04 11:06:46 (20 years ago)
- Location:
- pykota/trunk
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/lprngpykota
r1848 r1872 24 24 # 25 25 # $Log$ 26 # Revision 1.10 2004/10/24 09:06:46 jalet 27 # Added debug messages for LPRng support possible problem ??? 28 # 26 29 # Revision 1.9 2004/10/19 21:37:57 jalet 27 30 # Fixes recently introduced bug … … 101 104 """First pass done here.""" 102 105 # 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))) 103 107 if printer.LastJob.Exists and not printer.LastJob.JobSize : 104 108 # here we know that previous job wasn't accounted for correctly … … 183 187 self.logdebug("Job added to history during first pass : Job's size and price are still unknown.") 184 188 189 self.logdebug("First pass ends : ACTION_%s => %s => %s" % (action, getattr(printer, "Name"), getattr(user, "Name))) 185 190 if action == "DENY" : 186 191 return self.removeJob() … … 192 197 # Last job for current printer has the same JobId than 193 198 # 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))) 194 200 if self.accounter.isSoftware : 195 201 # Software accounting method was used, and we are … … 247 253 248 254 # here hardware accounting was completed. 255 self.logdebug("Second pass ends : POLICY_%s => %s => %s" % (policy, getattr(printer, "Name"), getattr(user, "Name))) 249 256 return self.acceptJob() 250 257 -
pykota/trunk/pykota/tool.py
r1856 r1872 22 22 # 23 23 # $Log$ 24 # Revision 1.136 2004/10/24 09:06:46 jalet 25 # Added debug messages for LPRng support possible problem ??? 26 # 24 27 # Revision 1.135 2004/10/20 14:29:30 jalet 25 28 # Now logs something when locale settings are incorrect. … … 589 592 self.printInfo("Incorrect locale settings. PyKota falls back to the 'C' locale.", "warn") 590 593 self.logdebug("Charset in use : %s" % self.charset) 594 arguments = " ".join(['"%s"' % arg for arg in sys.argv]) 595 self.logdebug("Command line arguments : %s" % arguments) 591 596 592 597 def getCharset(self) :