Changeset 1877

Show
Ignore:
Timestamp:
10/25/04 17:14:59 (19 years ago)
Author:
jalet
Message:

Fixed typo in code added to debug LPRng problem

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/lprngpykota

    r1872 r1877  
    2424# 
    2525# $Log$ 
     26# Revision 1.11  2004/10/25 15:14:59  jalet 
     27# Fixed typo in code added to debug LPRng problem 
     28# 
    2629# Revision 1.10  2004/10/24 09:06:46  jalet 
    2730# Added debug messages for LPRng support possible problem ??? 
     
    104107        """First pass done here.""" 
    105108        # 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"))) 
    107110        if printer.LastJob.Exists and not printer.LastJob.JobSize : 
    108111            # here we know that previous job wasn't accounted for correctly 
     
    187190            self.logdebug("Job added to history during first pass : Job's size and price are still unknown.") 
    188191             
    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"))) 
    190193        if action == "DENY" : 
    191194            return self.removeJob() 
     
    197200        # Last job for current printer has the same JobId than 
    198201        # 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"))) 
    200203        if self.accounter.isSoftware : 
    201204            # Software accounting method was used, and we are 
     
    253256             
    254257            # 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"))) 
    256259        return self.acceptJob() 
    257260