Show
Ignore:
Timestamp:
07/01/04 19:45:49 (20 years ago)
Author:
jalet
Message:

Added code to handle the description field for printers

Files:
1 modified

Legend:

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

    r1418 r1582  
    2222# 
    2323# $Log$ 
     24# Revision 1.9  2004/07/01 17:45:49  jalet 
     25# Added code to handle the description field for printers 
     26# 
    2427# Revision 1.8  2004/03/24 15:15:24  jalet 
    2528# Began integration of Henrik Janhagen's work on quota-then-balance 
     
    7073         
    7174    def getPrinterTitle(self, printer) :      
    72         return _("Report for %s quota on printer %s") % ((self.isgroup and "group") or "user", printer.Name) 
     75        return (_("Report for %s quota on printer %s") % ((self.isgroup and "group") or "user", printer.Name)) + (" (%s)" % printer.Description) 
    7376         
    7477    def getPrinterGraceDelay(self, printer) :     
     
    100103        balance = float(entry.AccountBalance or 0.0) 
    101104        lifetimepaid = float(entry.LifeTimePaid or 0.0) 
    102          
     105         
    103106        #balance 
    104107        if entry.LimitBy and (entry.LimitBy.lower() == "balance") :