Show
Ignore:
Timestamp:
02/13/05 23:02:29 (19 years ago)
Author:
jalet
Message:

Big database structure changes. Upgrade script is now included as well as
the new LDAP schema.
Introduction of the -o | --overcharge command line option to edpykota.
The output of repykota is more complete, but doesn't fit in 80 columns anymore.
Introduction of the new 'maxdenybanners' directive.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/reporters/text.py

    r1257 r2054  
    2222# 
    2323# $Log$ 
     24# Revision 1.10  2005/02/13 22:02:29  jalet 
     25# Big database structure changes. Upgrade script is now included as well as 
     26# the new LDAP schema. 
     27# Introduction of the -o | --overcharge command line option to edpykota. 
     28# The output of repykota is more complete, but doesn't fit in 80 columns anymore. 
     29# Introduction of the new 'maxdenybanners' directive. 
     30# 
    2431# Revision 1.9  2004/01/08 14:10:33  jalet 
    2532# Copyright year changed. 
     
    7885            self.report.append('-' * len(header)) 
    7986            for (entry, entrypquota) in getattr(self.tool.storage, "getPrinter%ssAndQuotas" % prefix)(printer, self.ugnames) : 
    80                 (pages, money, name, reached, pagecounter, soft, hard, balance, datelimit, lifepagecounter, lifetimepaid) = self.getQuota(entry, entrypquota) 
    81                 self.report.append("%-9.9s %s %7i %7s %7s %10s %-10.10s %8i %10s" % (name, reached, pagecounter, soft, hard, balance, datelimit, lifepagecounter, lifetimepaid)) 
     87                (pages, money, name, reached, pagecounter, soft, hard, balance, datelimit, lifepagecounter, lifetimepaid, overcharge, warncount) = self.getQuota(entry, entrypquota) 
     88                self.report.append("%-15.15s %s %5s %7i %7s %7s %10s %-10.10s %8i %10s %4s" % (name, reached, overcharge, pagecounter, soft, hard, balance, datelimit, lifepagecounter, lifetimepaid, warncount)) 
    8289                total += pages 
    8390                totalmoney += money 
     
    8592            if total or totalmoney :         
    8693                (tpage, tmoney) = self.getTotals(total, totalmoney) 
    87                 self.report.append((" " * 50) + tpage + tmoney) 
    88             self.report.append((" " * 51) + self.getPrinterRealPageCounter(printer)) 
     94                self.report.append((" " * 62) + tpage + tmoney) 
     95            self.report.append((" " * 63) + self.getPrinterRealPageCounter(printer)) 
    8996            self.report.append("")         
    9097        if self.isgroup :