Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 489512 - properties gives "TypeError: argument 5 to map() must support iteration" for marker_info['marker-levels']
Summary: properties gives "TypeError: argument 5 to map() must support iteration" for ...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: system-config-printer
Version: rawhide
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F11Target
TreeView+ depends on / blocked
 
Reported: 2009-03-10 14:54 UTC by Mads Kiilerich
Modified: 2009-03-16 17:36 UTC (History)
1 user (show)

Fixed In Version: 1.1.6-1.fc11
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-16 17:36:48 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mads Kiilerich 2009-03-10 14:54:09 UTC
Description of problem:

I added a printer (selected and auto-detected network printer), and when I select its icon and try to see properties on it I get:

Traceback (most recent call last):
  File "/usr/share/system-config-printer/system-config-printer.py", line 3088, in on_edit_activate
    self.dests_iconview_item_activated (self.dests_iconview, paths[0])
  File "/usr/share/system-config-printer/system-config-printer.py", line 961, in dests_iconview_item_activated
    self.fillPrinterTab (name)
  File "/usr/share/system-config-printer/system-config-printer.py", line 2422, in fillPrinterTab
    self.updateMarkerLevels()
  File "/usr/share/system-config-printer/system-config-printer.py", line 2460, in updateMarkerLevels
    marker_info['marker-levels'])
TypeError: argument 5 to map() must support iteration

I don't know what is relevant, but printers.conf is:

# Printer configuration file for CUPS v1.4b3
# Written by cupsd on 2009-03-10 15:34
<DefaultPrinter HP-LaserJet-2430>
Info HP LaserJet 2430
Location 192.168.45.50
MakeModel HP LaserJet 2430 Postscript (recommended)
DeviceURI socket://192.168.45.50:9100
State Idle
StateTime 1236695622
Reason media-low-report
Type 8425684
Filter application/vnd.cups-raw 0 -
Filter application/vnd.cups-command 0 commandtops
Filter application/vnd.cups-postscript 0 -
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
OpPolicy default
ErrorPolicy stop-printer
Attribute marker-colors none
Attribute marker-levels 31
Attribute marker-names Black Cartridge HP Q6511A
Attribute marker-types tonerCartridge
Attribute marker-change-time 1236695622
</Printer>


Version-Release number of selected component (if applicable):

system-config-printer-1.1.5-1.fc11.i586
cups-1.4-0.b2.8.fc11.i586

Comment 1 Tim Waugh 2009-03-10 15:18:36 UTC
Thanks.  Fixed upstream.


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