Show
Ignore:
Timestamp:
04/16/03 14:35:49 (21 years ago)
Author:
jalet
Message:

Groups quota work now !

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/repykota

    r915 r927  
    2323# 
    2424# $Log$ 
     25# Revision 1.26  2003/04/16 12:35:49  jalet 
     26# Groups quota work now ! 
     27# 
    2528# Revision 1.25  2003/04/15 11:30:57  jalet 
    2629# More work done on money print charging. 
     
    177180                print _("Group            used     soft     hard   grace        total") 
    178181                print "------------------------------------------------------------" 
    179                 for name in self.storage.getPrinterGroups(printerid) : 
     182                for (ident, name) in self.storage.getPrinterGroups(printerid) : 
    180183                    quota = self.storage.getGroupPQuota(ident, printerid)  
    181184                    total += self.printQuota(name, quota) 
     
    200203        """Prints the quota information.""" 
    201204        if quota is not None : 
    202             lifepagecounter = quota["lifepagecounter"] 
    203             pagecounter = quota["pagecounter"] 
     205            lifepagecounter = quota["lifepagecounter"] or 0 
     206            pagecounter = quota["pagecounter"] or 0 
    204207            softlimit = quota["softlimit"] 
    205208            hardlimit = quota["hardlimit"] 
     
    244247        elif options["users"] and options["groups"] :     
    245248            raise PyKotaToolError, _("incompatible options, see help.") 
    246         elif options["groups"] :     
    247             raise PyKotaToolError, _("option --groups is currently not implemented.") 
    248249        elif args :     
    249250            raise PyKotaToolError, _("unused arguments [%s]. Aborting.") % ", ".join(args)