Show
Ignore:
Timestamp:
09/19/05 09:08:55 (19 years ago)
Author:
jerome
Message:

Now honors the passthrough mode for printers (although it can't be set with pkprinters for now).
The output format for pkprinters --list has changed.
Severity : can be high if thrid party tools rely on the old pkprinters' output format.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkprinters

    r2344 r2463  
    169169                if parents :  
    170170                    parents = "%s %s" % (_("in"), parents) 
    171                 print "%s [%s] (%s + #*%s) %s" % \ 
     171                print "%s [%s] (%s + #*%s)" % \ 
    172172                      (printer.Name, printer.Description, printer.PricePerJob, \ 
    173                        printer.PricePerPage, parents) 
     173                       printer.PricePerPage) 
     174                print "    %s" % (_("Passthrough mode : %s") % ((printer.PassThrough and _("ON")) or _("OFF"))) 
     175                print "    %s" % (_("Maximum job size : %s") % ((printer.MaxJobSize and (_("%s pages") % printer.MaxJobSize)) or _("Unlimited"))) 
     176                if parents :        
     177                    print "    %s" % parents 
    174178            else :     
    175179                if options["charge"] :