Show
Ignore:
Timestamp:
02/25/04 20:09:24 (20 years ago)
Author:
jalet
Message:

Fix for LDAP problem when job price was 0.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storage.py

    r1359 r1363  
    2222# 
    2323# $Log$ 
     24# Revision 1.44  2004/02/25 19:09:24  jalet 
     25# Fix for LDAP problem when job price was 0. 
     26# 
    2427# Revision 1.43  2004/02/25 12:36:34  jalet 
    2528# Avoids a database query even if caching was disabled. 
     
    363366            self.parent.beginTransaction() 
    364367            try : 
    365                 self.User.consumeAccountBalance(jobprice) 
     368                if jobprice : 
     369                    self.User.consumeAccountBalance(jobprice) 
    366370                for upq in [ self ] + self.ParentPrintersUserPQuota : 
    367371                    self.parent.increaseUserPQuotaPagesCounters(upq, jobsize)