Changeset 3346 for pykota

Show
Ignore:
Timestamp:
02/23/08 22:29:40 (17 years ago)
Author:
jerome
Message:

Minor changes.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkinvoice

    r3341 r3346  
    165165        """Generates the invoices file.""" 
    166166        if len(peruser) : 
    167             percent = Percent(self) 
    168             percent.setSize(len(peruser)) 
     167            percent = Percent(self, size=len(peruser)) 
    169168            if outfname != "-" : 
    170169                percent.display("%s...\n" % _("Generating invoices")) 
     
    265264                         options.vat) 
    266265        if outfname != "-" :     
    267             print _("Invoiced %i users for %i jobs, %i pages and %.3f credits") \ 
    268                 % (len(peruser), nbjobs, nbpages, nbcredits) 
     266            nbusers = len(peruser) 
     267            print _("Invoiced %(nbusers)i users for %(nbjobs)i jobs, %(nbpages)i pages and %(nbcredits).3f credits") \ 
     268                     % locals() 
    269269                      
    270270if __name__ == "__main__" :