Show
Ignore:
Timestamp:
03/10/03 00:56:21 (21 years ago)
Author:
jalet
Message:

Option noquota added to do accounting only.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/repykota

    r842 r843  
    1717# 
    1818# $Log$ 
     19# Revision 1.16  2003/03/09 23:56:21  jalet 
     20# Option noquota added to do accounting only. 
     21# 
    1922# Revision 1.15  2003/03/09 23:39:14  jalet 
    2023# Simplified translations. 
     
    159162            lifepagecounter = quota["lifepagecounter"] 
    160163            pagecounter = quota["pagecounter"] 
    161             softlimit = quota["softlimit"] or 0 
    162             hardlimit = quota["hardlimit"] or 0 
     164            softlimit = quota["softlimit"] 
     165            hardlimit = quota["hardlimit"] 
    163166            datelimit = quota["datelimit"] 
    164167            if datelimit is not None : 
     
    169172            else :     
    170173                datelimit = "" 
    171             reached = ((pagecounter >= softlimit) and "+") or "-" 
    172             print "%-10.10s %c %8i %8i %8i %10s %9i" % (name, reached, pagecounter, softlimit, hardlimit, str(datelimit)[:10], lifepagecounter) 
     174            reached = ((softlimit is not None) and (pagecounter >= softlimit) and "+") or "-" 
     175            print "%-10.10s %c %8i %8s %8s %10s %9i" % (name, reached, pagecounter, str(softlimit), str(hardlimit), str(datelimit)[:10], lifepagecounter) 
    173176            return lifepagecounter 
    174177