Bug 214180 - hal_lpadmin should supply commandset
Summary: hal_lpadmin should supply commandset
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: hal-cups-utils
Version: 6
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: FC6Update 214181
TreeView+ depends on / blocked
 
Reported: 2006-11-06 13:19 UTC by Tim Waugh
Modified: 2007-11-30 22:11 UTC (History)
3 users (show)

Fixed In Version: 0.6.2-4.2
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-11-14 11:05:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Use default printer if only command set is known/matches (1.25 KB, patch)
2006-11-08 14:09 UTC, Florian Festi
no flags Details | Diff
hal-cups-utils-match-commandset.patch (818 bytes, patch)
2006-11-08 16:47 UTC, Tim Waugh
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.