Flickr: exception raised in slideshow

Bug #252536 reported by Jesús Corrius
2
Affects Status Importance Assigned to Milestone
Moovida
Fix Released
Medium
Olivier Tilloy

Bug Description

Steps to reproduce it:

1. Start Elisa
2. Go to Pictures -> Internet -> Flickr -> Any subsection
3. Start a slideshow
4. Randomly click around and move the progress bar.

Actual results:

I get an exception. Here it is the traceback:

<type 'exceptions.ValueError'>
Python 2.5.2: C:\OABuild\Distribuable-dependencies\deps\Release\bin\python.exe
Mon Jul 28 12:40:35 2008

A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.

 C:\src\upicek\elisa-plugins\elisa\plugins\poblesec\player_slideshow.py in on_selected_item_changed(background=<ListFading object at 0x49e9ee0 (elisa+plugins+pigment+widgets+list+List at 0x4a3e480)>, item=None, prev_item=None)
  145
  146 def on_selected_item_changed(background, item, prev_item):
  147 index = self.background.model.index(item)
  148 self._set_current_index(index)
  149
index undefined
self = <Slideshow object at 0x49e9e90 (elisa+plugins+poblesec+player_slideshow+Slideshow at 0x4a3e410)>
self.background = <ListFading object at 0x49e9ee0 (elisa+plugins+pigment+widgets+list+List at 0x4a3e480)>
self.background.model = []
self.background.model.index = <built-in method index of List object at 0x049DDAE0>
item = None
<type 'exceptions.ValueError'>: list.index(x): x not in list
    __class__ = <type 'exceptions.ValueError'>
    __delattr__ = <method-wrapper '__delattr__' of exceptions.ValueError object at 0x13453760>
    __dict__ = {}
    __doc__ = 'Inappropriate argument value (of correct type).'
    __getattribute__ = <method-wrapper '__getattribute__' of exceptions.ValueError object at 0x13453760>
    __getitem__ = <method-wrapper '__getitem__' of exceptions.ValueError object at 0x13453760>
    __getslice__ = <method-wrapper '__getslice__' of exceptions.ValueError object at 0x13453760>
    __hash__ = <method-wrapper '__hash__' of exceptions.ValueError object at 0x13453760>
    __init__ = <method-wrapper '__init__' of exceptions.ValueError object at 0x13453760>
    __new__ = <built-in method __new__ of type object at 0x10232E10>
    __reduce__ = <built-in method __reduce__ of exceptions.ValueError object at 0x13453760>
    __reduce_ex__ = <built-in method __reduce_ex__ of exceptions.ValueError object at 0x13453760>
    __repr__ = <method-wrapper '__repr__' of exceptions.ValueError object at 0x13453760>
    __setattr__ = <method-wrapper '__setattr__' of exceptions.ValueError object at 0x13453760>
    __setstate__ = <built-in method __setstate__ of exceptions.ValueError object at 0x13453760>
    __str__ = <method-wrapper '__str__' of exceptions.ValueError object at 0x13453760>
    args = ('list.index(x): x not in list',)
    message = 'list.index(x): x not in list'

The above is a description of an error in a Python program. Here is
the original traceback:

Traceback (most recent call last):
  File "C:\src\upicek\elisa-plugins\elisa\plugins\poblesec\player_slideshow.py", line 147, in on_selected_item_changed
    index = self.background.model.index(item)
ValueError: list.index(x): x not in list

Expected results:

No exception

yyoyo (lionel.martin)
Changed in elisa:
assignee: nobody → osomon
milestone: none → 0.5.4
description: updated
Revision history for this message
Olivier Tilloy (osomon) wrote :

Fixed by the refactoring of the list controllers in poblesec.

Changed in elisa:
importance: Undecided → Medium
status: New → Fix Committed
Olivier Tilloy (osomon)
Changed in elisa:
status: Fix Committed → Fix Released
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.