Bug 214180

Summary: hal_lpadmin should supply commandset
Product: [Fedora] Fedora Reporter: Tim Waugh <twaugh>
Component: hal-cups-utilsAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6CC: davidz, ffesti, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 0.6.2-4.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-14 11:05:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 207681, 214181    
Attachments:
Description Flags
Use default printer if only command set is known/matches
none
hal-cups-utils-match-commandset.patch none

Description Tim Waugh 2006-11-06 13:19:48 UTC
Description of problem:
hal_lpadmin should supply the 'commandset' list of accepted languages if present
in the HAL data
        ppd = f.getPPD(self.make, self.model, self.description)

Looks like this:
  printer.commandset = {'MLC', 'PCL', 'PML', 'DW-PCL', 'DYN'} (string list)

and f.getPPD takes a Python list of strings for the optional "languages" 4th arg.

Version-Release number of selected component (if applicable):
hal-cups-utils-0.6.2-4

This would let us supply 'Generic PostScript' PPDs for otherwise unknown
PostScript-capable printers.

Comment 1 Florian Festi 2006-11-08 14:09:22 UTC
Created attachment 140650 [details]
Use default printer if only command set is known/matches

Needs current system-config-printer HEAD. Code is still untested due to missing
hardware.

Comment 2 Tim Waugh 2006-11-08 16:46:53 UTC
I think HAL_PROP_PRINTER_COMMANDSET needs to be split on '\t' instead of ','
from my device testing.


Comment 3 Tim Waugh 2006-11-08 16:47:36 UTC
Created attachment 140667 [details]
hal-cups-utils-match-commandset.patch

Tested patch.

Comment 4 Tim Waugh 2006-11-08 18:02:32 UTC
Fixed in devel:0.6.2-6, FC-6:0.6.2-4.1.

Comment 5 Fedora Update System 2006-11-13 18:57:52 UTC
Fixed in update: hal-cups-utils-0.6.2-4.2