Changeset 950 for pykota/trunk/bin

Show
Ignore:
Timestamp:
04/23/03 11:58:17 (22 years ago)
Author:
jalet
Message:

Prices per page/job are now displayed

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/repykota

    r949 r950  
    2323# 
    2424# $Log$ 
     25# Revision 1.31  2003/04/23 09:58:17  jalet 
     26# Prices per page/job are now displayed 
     27# 
    2528# Revision 1.30  2003/04/18 08:34:51  jalet 
    2629# Minor fix. 
     
    187190        for (printerid, printer) in printers : 
    188191            print _("*** Report for %s quota on printer %s") % ((options["groups"] and "group") or "user", printer) 
    189             print _("Pages grace time: %idays") % self.config.getGraceDelay(printer) 
     192            print _("Pages grace time: %i days") % self.config.getGraceDelay(printer) 
     193            prices = self.storage.getPrinterPrices(printerid) 
     194            if prices is None : 
     195                (perpage, perjob) = None 
     196            else :     
     197                (perpage, perjob) = prices 
     198                if perjob is not None : 
     199                    print _("Price per job: %.3f") % perjob 
     200                if perpage is not None :     
     201                    print _("Price per page: %.3f") % perpage 
    190202            total = 0 
    191203            totalmoney = 0.0