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

Added debug messages for LPRng support possible problem ???

Files:
1 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