Show
Ignore:
Timestamp:
02/21/06 01:01:02 (18 years ago)
Author:
jerome
Message:

Doesn't list anymore entries which don't exist.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkprinters

    r2724 r2725  
    174174            if options["list"] : 
    175175                for printer in printers : 
    176                     parents = ", ".join([p.Name for p in self.storage.getParentPrinters(printer)]) 
    177                     if parents :  
    178                         parents = "%s %s" % (_("in"), parents) 
    179                     print "%s [%s] (%s + #*%s)" % \ 
    180                           (printer.Name, printer.Description, printer.PricePerJob, \ 
    181                            printer.PricePerPage) 
    182                     print "    %s" % (_("Passthrough mode : %s") % ((printer.PassThrough and _("ON")) or _("OFF"))) 
    183                     print "    %s" % (_("Maximum job size : %s") % ((printer.MaxJobSize and (_("%s pages") % printer.MaxJobSize)) or _("Unlimited"))) 
    184                     if parents :        
    185                         print "    %s" % parents 
    186                     print     
     176                    if printer.Exists : 
     177                        parents = ", ".join([p.Name for p in self.storage.getParentPrinters(printer)]) 
     178                        print "%s [%s] (%s + #*%s)" % \ 
     179                              (printer.Name, printer.Description, printer.PricePerJob, \ 
     180                               printer.PricePerPage) 
     181                        print "    %s" % (_("Passthrough mode : %s") % ((printer.PassThrough and _("ON")) or _("OFF"))) 
     182                        print "    %s" % (_("Maximum job size : %s") % ((printer.MaxJobSize and (_("%s pages") % printer.MaxJobSize)) or _("Unlimited"))) 
     183                        if parents :  
     184                            print "    %s %s" % (_("in"), parents) 
     185                        print     
    187186            else : 
    188187                self.display("%s...\n" % _("Modification"))