- Timestamp:
- 10/04/08 10:49:42 (16 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/bin/pkprinters
r3418 r3420 64 64 req = cups.newRequest(pkipplib.IPP_GET_PRINTER_ATTRIBUTES) 65 65 req.operation["printer-uri"] = ("uri", cups.identifierToURI("printers", printername)) 66 req.operation["requested-attributes"] = ("keyword", "device-uri") 66 67 try : 67 68 return cups.doRequest(req).printer["device-uri"][0][1] 68 except :69 except (AttributeError, IndexError) : 69 70 self.printInfo(_("Impossible to retrieve %(printername)s's DeviceURI") % locals(), "warn") 70 71 return ""