Show
Ignore:
Timestamp:
08/06/04 22:46:45 (20 years ago)
Author:
jalet
Message:

Finished group quota fix for balance when no user in group has a balance

Files:
1 modified

Legend:

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

    r1665 r1666  
    2222# 
    2323# $Log$ 
     24# Revision 1.118  2004/08/06 20:46:45  jalet 
     25# Finished group quota fix for balance when no user in group has a balance 
     26# 
    2427# Revision 1.117  2004/08/06 13:45:51  jalet 
    2528# Fixed french translation problem. 
     
    708711        self.logdebug("Checking group %s's quota on printer %s" % (group.Name, printer.Name)) 
    709712        if group.LimitBy and (group.LimitBy.lower() == "balance") :  
    710             val = group.AccountBalance 
     713            val = group.AccountBalance or 0.0 
    711714            if enforcement == "STRICT" :  
    712715                val -= self.softwareJobPrice # use precomputed size.