Show
Ignore:
Timestamp:
08/18/03 18:20:59 (21 years ago)
Author:
jalet
Message:

Improvement of the printing system detection code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pykota

    r1113 r1116  
    2323# 
    2424# $Log$ 
     25# Revision 1.38  2003/08/18 16:20:59  jalet 
     26# Improvement of the printing system detection code. 
     27# 
    2528# Revision 1.37  2003/07/29 20:55:17  jalet 
    2629# 1.14 is out ! 
     
    210213            if Kseen is None :         
    211214                Kseen = 1       # we assume the user wants at least one copy... 
     215            if (rseen is None) and jseen and Pseen and nseen :     
     216                self.logger.log_message(_("Printer hostname undefined, set to 'localhost'"), "warn") 
     217                rseen = "localhost" 
    212218            if jseen and Pseen and nseen and rseen :         
    213219                # job is always in stdin (None) 
    214220                return ("LPRNG", rseen, Pseen, nseen, jseen, None, Kseen) 
     221        self.logger.log_message(_("Printing system unknown, args=%s") % " ".join(sys.argv), "warn") 
    215222        return (None, None, None, None, None, None, None)   # Unknown printing system           
    216223