Show
Ignore:
Timestamp:
11/24/06 21:41:45 (18 years ago)
Author:
jerome
Message:

Fixed problem with hplip's device_uris

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r3059 r3070  
    288288                raise PyKotaToolError, "Invalid DEVICE_URI : %s\n" % device_uri 
    289289        else :         
    290             while destination.startswith("/") : 
    291                 destination = destination[1:] 
    292             checkauth = destination.split("@", 1)     
    293             if len(checkauth) == 2 : 
    294                 destination = checkauth[1] 
     290            if backend == "hp" : 
     291                printerhostname = destination.split("=")[1] # hp:/net/HP_LaserJet_8000_Series?ip=192.168.100.100 
     292            else :     
     293                while destination.startswith("/") : 
     294                    destination = destination[1:] 
     295                checkauth = destination.split("@", 1)     
     296                if len(checkauth) == 2 : 
     297                    destination = checkauth[1] 
    295298            printerhostname = destination.split("/")[0].split(":")[0] 
    296299