computer-janitor-gtk crashed with AttributeError in reorder(): 'ListStore' object has no attribute 'reorder'

Bug #806574 reported by Ngassam Nkwenga
24
This bug affects 3 people
Affects Status Importance Assigned to Milestone
computer-janitor (Ubuntu)
Triaged
Medium
Unassigned
Oneiric
Won't Fix
Medium
Unassigned

Bug Description

Hi, I was not doing something special. I wanted to reorder the list by size from the menu.

TEST CASE:
1- Open computer janitor
2- from the View Menu, choose "sort by size"

Result:
Traceback (most recent call last):
  File "/usr/share/computerjanitor/computerjanitorapp/gtk/ui.py", line 475, in on_sort_by_name_toggled
    self.sort_cruft()
  File "/usr/share/computerjanitor/computerjanitorapp/gtk/ui.py", line 224, in sort_cruft
    self.store.reorder(cruft_indexes)
  File "/usr/share/computerjanitor/computerjanitorapp/gtk/store.py", line 129, in reorder
    return self.store.reorder(*args, **kws)
AttributeError: 'ListStore' object has no attribute 'reorder'

thanks

ProblemType: Crash
DistroRelease: Ubuntu 11.10
Package: computer-janitor-gtk 2.1.0-0ubuntu5 [modified: usr/share/doc/computer-janitor-gtk/changelog.Debian.gz]
ProcVersionSignature: Ubuntu 3.0-2.3-generic 3.0.0-rc4
Uname: Linux 3.0-2-generic i686
Architecture: i386
Date: Wed Jul 6 19:08:29 2011
ExecutablePath: /usr/share/computerjanitor/computer-janitor-gtk
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
InterpreterPath: /usr/bin/python2.7
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/share/computerjanitor/computer-janitor-gtk
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/share/computerjanitor/computer-janitor-gtk']
SourcePackage: computer-janitor
Title: computer-janitor-gtk crashed with AttributeError in reorder(): 'ListStore' object has no attribute 'reorder'
UpgradeStatus: Upgraded to oneiric on 2011-07-01 (5 days ago)
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
Ngassam Nkwenga (cyrildz) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Robert Roth (evfool) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. We appreciate the difficulties you are facing, but this appears to be a "regular" (non-security) bug. I have unmarked it as a security issue since this bug does not show evidence of allowing attackers to cross privilege boundaries nor directly cause loss of data/privacy. Please feel free to report any other bugs you may find.
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

visibility: private → public
Changed in computer-janitor (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
tags: added: regression-release
Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :

Thanks for your report. It is reproducible with the steps in the description. Setting to triaged.

Changed in computer-janitor (Ubuntu):
status: Confirmed → Triaged
description: updated
Changed in computer-janitor (Ubuntu Oneiric):
assignee: nobody → Barry Warsaw (barry)
Barry Warsaw (barry)
Changed in computer-janitor (Ubuntu Oneiric):
milestone: none → oneiric-alpha-3
Revision history for this message
Barry Warsaw (barry) wrote :

Huh. Except that according to this:

http://developer.gnome.org/pygtk/stable/class-gtkliststore.html#method-gtkliststore--reorder

ListStore objects should have a .reorder() method.

Revision history for this message
Barry Warsaw (barry) wrote :

Ah yes, PyGI.

Revision history for this message
Martin Pitt (pitti) wrote :

Note, that seems to be a bug in GTK, the method is currently not introspectable. Might be because it's passing an array with unknown size?

Revision history for this message
Martin Pitt (pitti) wrote :

I checked the annotations, and gtk_list_store_reorder() is explicitly marked as (skip), i. e. it's recognized as not being introspectable. I'm afraid this needs a workaround in c-j using the other methods like swap(), move_before(), etc.

Changed in computer-janitor (Ubuntu Oneiric):
milestone: oneiric-alpha-3 → ubuntu-11.10-beta-1
Martin Pitt (pitti)
Changed in computer-janitor (Ubuntu):
milestone: ubuntu-11.10-beta-1 → ubuntu-11.10-beta-2
Barry Warsaw (barry)
Changed in computer-janitor (Ubuntu Oneiric):
milestone: ubuntu-11.10-beta-2 → none
tags: added: testcase
Revision history for this message
dust (hannes-b) wrote :

the bug is still there in 11.10

Revision history for this message
Jo-Erlend Schinstad (joerlend.schinstad-deactivatedaccount) wrote :

What has happened to this bug? I think it's really important that this gets fixed really quickly.

Barry Warsaw (barry)
Changed in computer-janitor (Ubuntu):
assignee: Barry Warsaw (barry) → nobody
Changed in computer-janitor (Ubuntu Oneiric):
assignee: Barry Warsaw (barry) → nobody
Revision history for this message
Rolf Leggewie (r0lf) wrote :

oneiric has seen the end of its life and is no longer receiving any updates. Marking the oneiric task for this ticket as "Won't Fix".

Changed in computer-janitor (Ubuntu Oneiric):
status: Triaged → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.