Changeset 1363

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

Fix for LDAP problem when job price was 0.

Location:
pykota/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/NEWS

    r1362 r1363  
    2424    - 1.18alpha9 : 
    2525     
     26        - Fix for LDAP problem when job price was 0. 
     27         
    2628        - Fix for empty user groups with LDAP. 
    2729         
  • 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)