Changeset 950 for pykota

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

Prices per page/job are now displayed

Location:
pykota/trunk
Files:
7 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 
  • pykota/trunk/NEWS

    r948 r950  
    2222PyKota NEWS : 
    2323 
     24    - 1.04pre1 : 
     25     
     26        - repykota now displays prices per job and per page for each 
     27          printer, if they are defined. 
     28           
    2429    - 1.04pre0 : 
    2530     
  • pykota/trunk/po/en/pykota.po

    r929 r950  
    2121# 
    2222# $Log$ 
     23# Revision 1.20  2003/04/23 09:58:17  jalet 
     24# Prices per page/job are now displayed 
     25# 
    2326# Revision 1.19  2003/04/17 09:26:21  jalet 
    2427# repykota now reports account balances too. 
     
    112115msgstr "" 
    113116 
    114 msgid "Pages grace time: %idays" 
     117msgid "Pages grace time: %i days" 
    115118msgstr "" 
    116119 
     
    310313msgid "Totals may be inaccurate if some users are members of several groups." 
    311314msgstr "" 
     315 
     316msgid "Price per job: %.3f" 
     317msgstr "" 
     318 
     319msgid "Price per page: %.3f" 
     320msgstr "" 
  • pykota/trunk/po/fr/pykota.po

    r930 r950  
    2121# 
    2222# $Log$ 
     23# Revision 1.19  2003/04/23 09:58:17  jalet 
     24# Prices per page/job are now displayed 
     25# 
    2326# Revision 1.18  2003/04/17 09:32:13  jalet 
    2427# Translation 
     
    119122msgstr "l'option --groups n'est pas encore impl�nt�" 
    120123 
    121 msgid "Pages grace time: %idays" 
    122 msgstr "D�i de gr�: %ijours" 
     124msgid "Pages grace time: %i days" 
     125msgstr "D�i de gr�: %i jours" 
    123126 
    124127msgid "unused arguments [%s]. Aborting." 
     
    323326msgid "Totals may be inaccurate if some users are members of several groups." 
    324327msgstr "Les totaux peuvent �e faux si des utilisateurs sont dans plusieurs groupes." 
     328 
     329msgid "Price per job: %.3f" 
     330msgstr "Prix par job: %.3f" 
     331 
     332msgid "Price per page: %.3f" 
     333msgstr "Prix par page: %.3f" 
  • pykota/trunk/po/pykota.pot

    r929 r950  
    2121# 
    2222# $Log$ 
     23# Revision 1.20  2003/04/23 09:58:17  jalet 
     24# Prices per page/job are now displayed 
     25# 
    2326# Revision 1.19  2003/04/17 09:26:21  jalet 
    2427# repykota now reports account balances too. 
     
    112115msgstr "" 
    113116 
    114 msgid "Pages grace time: %idays" 
     117msgid "Pages grace time: %i days" 
    115118msgstr "" 
    116119 
     
    310313msgid "Totals may be inaccurate if some users are members of several groups." 
    311314msgstr "" 
     315 
     316msgid "Price per job: %.3f" 
     317msgstr "" 
     318 
     319msgid "Price per page: %.3f" 
     320msgstr "" 
  • pykota/trunk/pykota/version.py

    r946 r950  
    2121# 
    2222 
    23 __version__ = "1.04pre0-unofficial" 
     23__version__ = "1.04pre1-unofficial" 
    2424 
    2525__doc__ = """PyKota : a complete Printing Quota Solution for CUPS."""