Changeset 791 for pykota/trunk/bin

Show
Ignore:
Timestamp:
02/10/03 13:07:31 (22 years ago)
Author:
jalet
Message:

Now repykota should output the recorded total page number for each printer too.

Location:
pykota/trunk/bin
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/edpykota

    r775 r791  
    1717# 
    1818# $Log$ 
     19# Revision 1.20  2003/02/10 12:07:30  jalet 
     20# Now repykota should output the recorded total page number for each printer too. 
     21# 
    1922# Revision 1.19  2003/02/09 13:40:29  jalet 
    2023# typo 
     
    177180                if self.isValidName(pname) : 
    178181                    self.storage.addPrinter(pname) 
    179                     printernames = [ pname ] 
     182                    printernames = [ (pname, 0) ] 
    180183                else :     
    181184                    raise PyKotaToolError, _("Invalid printer name %s") % pname 
     
    197200            self.logger.log_message(_("Hard limit %i is less than soft limit %i, values will be exchanged.") % (hardlimit, softlimit), "warn") 
    198201            (softlimit, hardlimit) = (hardlimit, softlimit) 
    199         for printer in printernames : 
     202        for (printer, printerpagecounter) in printernames : 
    200203            if options["prototype"] : 
    201204                if options["users"] : 
  • pykota/trunk/bin/repykota

    r775 r791  
    1717# 
    1818# $Log$ 
     19# Revision 1.10  2003/02/10 12:07:30  jalet 
     20# Now repykota should output the recorded total page number for each printer too. 
     21# 
    1922# Revision 1.9  2003/02/09 13:40:29  jalet 
    2023# typo 
     
    109112        if not printernames : 
    110113            raise PyKotaToolError, _("There's no printer matching %s") % options["printer"] 
    111         for printer in printernames : 
     114        for (printer, printerpagecounter) in printernames : 
    112115            print _("*** Report for %s quota on printer %s") % ((options["users"] and "user") or "group", printer) 
    113116            print _("Pages grace time: %idays") % self.config.getGraceDelay() 
     
    127130            if total :         
    128131                print (" " * 43) + ("Total : %9i" % total) 
     132            print (" " * 44) + ("Real : %9i" % printerpagecounter) 
    129133            print         
    130134                         
  • pykota/trunk/bin/warnpykota

    r775 r791  
    1717# 
    1818# $Log$ 
     19# Revision 1.8  2003/02/10 12:07:30  jalet 
     20# Now repykota should output the recorded total page number for each printer too. 
     21# 
    1922# Revision 1.7  2003/02/09 13:40:29  jalet 
    2023# typo 
     
    107110        if not printernames : 
    108111            raise PyKotaToolError, _("There's no printer matching %s") % options["printer"] 
    109         for printer in printernames : 
     112        for (printer, printerpagecounter) in printernames : 
    110113            if options["users"] : 
    111114                for name in self.storage.getPrinterUsers(printer) :