Your message dated Sun, 29 Nov 2009 22:06:48 +1100 with message-id <200911292206.52941.msp@debian.org> and subject line Re: Bug#521696: hplip-data: Supplies tab in hp-toolbox broken has caused the Debian Bug report #521696, regarding hplip-data: Supplies tab in hp-toolbox broken to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 521696: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521696 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: hplip-data: Supplies tab in hp-toolbox broken
- From: Michael Lange <klappnase@web.de>
- Date: Sun, 29 Mar 2009 16:44:43 +0200
- Message-id: <20090329144443.25134.76645.reportbug@localhost>
Package: hplip-data Version: 2.8.6.b-4 Severity: normal Tags: patch Using the hp-toolbox with a HP Business Inkjet 1000 printer I get this error message when trying to view the "Supplies" tab: Traceback (most recent call last): File "/usr/share/hplip/ui/devmgr4.py", line 738, in Tabs_currentChanged self.TabIndex[tab]() File "/usr/share/hplip/ui/devmgr4.py", line 2193, in UpdateSuppliesTab agent_sku, level_pixmap, agent_health_desc) File "/usr/share/hplip/ui/devmgr4.py", line 137, in __init__ self.setPixmap(3, level_pixmap) TypeError: argument 2 of QListViewItem.setPixmap() has an invalid type I added a "print type(level_pixmap)" to the self.setPixmap() method and found that it was NoneType which QListViewItem.setPixmap() would obviously not accept. So I tried and changed the call to self.setPixmap(3, level_pixmap) into if level_pixmap: self.setPixmap(3, level_pixmap) which fixed the problem. I saw then that the Supplies list contains one line per cartridge plus one line per print head. The print heads of course do not have a pixmap showing their ink levels which had caused the problem. I attached the patch. Regards Michael -- System Information: Debian Release: 5.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages hplip-data depends on: ii python 2.5.2-3 An interactive high-level object-o Versions of packages hplip-data recommends: ii hplip 2.8.6.b-4 HP Linux Printing and Imaging Syst hplip-data suggests no packages. -- no debconf information--- devmgr4.py_orig 2009-03-29 14:29:20.000000000 +0200 +++ devmgr4.py 2009-03-29 14:30:15.000000000 +0200 @@ -134,7 +134,8 @@ def __init__(self, parent, pixmap, desc, part_no, level_pixmap, status): QListViewItem.__init__(self, parent, '', desc, part_no, '', status) self.setPixmap(0, pixmap) - self.setPixmap(3, level_pixmap) + if level_pixmap: + self.setPixmap(3, level_pixmap) def paintCell(self, p, cg, c, w, a): color = QColorGroup(cg)
--- End Message ---
--- Begin Message ---
- To: Michael Lange <klappnase@web.de>, 521696-done@bugs.debian.org
- Subject: Re: Bug#521696: hplip-data: Supplies tab in hp-toolbox broken
- From: Mark Purcell <msp@debian.org>
- Date: Sun, 29 Nov 2009 22:06:48 +1100
- Message-id: <200911292206.52941.msp@debian.org>
- In-reply-to: <20090329144443.25134.76645.reportbug@localhost>
- References: <20090329144443.25134.76645.reportbug@localhost>
Version: 3.9.10-1 On Monday 30 March 2009 01:44:43 Michael Lange wrote: > Package: hplip-data > Version: 2.8.6.b-4 > Severity: normal > Tags: patch > > Using the hp-toolbox with a HP Business Inkjet 1000 printer I get this error message when trying to view > the "Supplies" tab: Michael, Thanks for your report. This has been fixed upstream with the following approach: class SuppliesListViewItem(QListViewItem): def __init__(self, parent, pixmap, desc, part_no, level_pixmap, status): QListViewItem.__init__(self, parent, '', desc, part_no, '', status) if pixmap is not None: self.setPixmap(0, pixmap) if level_pixmap is not None: self.setPixmap(3, level_pixmap) I am unsure of which version this was included upstream, but it is available in the current version. MarkAttachment: signature.asc
Description: This is a digitally signed message part.
--- End Message ---