Changeset 1872 for pykota

Show
Ignore:
Timestamp:
10/24/04 11:06:46 (20 years ago)
Author:
jalet
Message:

Added debug messages for LPRng support possible problem ???

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/lprngpykota

    r1848 r1872  
    2424# 
    2525# $Log$ 
     26# Revision 1.10  2004/10/24 09:06:46  jalet 
     27# Added debug messages for LPRng support possible problem ??? 
     28# 
    2629# Revision 1.9  2004/10/19 21:37:57  jalet 
    2730# Fixes recently introduced bug 
     
    101104        """First pass done here.""" 
    102105        # 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))) 
    103107        if printer.LastJob.Exists and not printer.LastJob.JobSize : 
    104108            # here we know that previous job wasn't accounted for correctly 
     
    183187            self.logdebug("Job added to history during first pass : Job's size and price are still unknown.") 
    184188             
     189        self.logdebug("First pass ends : ACTION_%s => %s => %s" % (action, getattr(printer, "Name"), getattr(user, "Name))) 
    185190        if action == "DENY" : 
    186191            return self.removeJob() 
     
    192197        # Last job for current printer has the same JobId than 
    193198        # 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))) 
    194200        if self.accounter.isSoftware : 
    195201            # Software accounting method was used, and we are 
     
    247253             
    248254            # here hardware accounting was completed. 
     255        self.logdebug("Second pass ends : POLICY_%s => %s => %s" % (policy, getattr(printer, "Name"), getattr(user, "Name))) 
    249256        return self.acceptJob() 
    250257         
  • pykota/trunk/pykota/tool.py

    r1856 r1872  
    2222# 
    2323# $Log$ 
     24# Revision 1.136  2004/10/24 09:06:46  jalet 
     25# Added debug messages for LPRng support possible problem ??? 
     26# 
    2427# Revision 1.135  2004/10/20 14:29:30  jalet 
    2528# Now logs something when locale settings are incorrect. 
     
    589592            self.printInfo("Incorrect locale settings. PyKota falls back to the 'C' locale.", "warn") 
    590593        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) 
    591596         
    592597    def getCharset(self) :