I found a small bug in videoitem.py

I enter to the movie menu and without selecting no video I raise the
MENU event. It appears the following traceback:


videoitem.py (661): <video.videoitem.VideoItem instance at 0xb4a4b82c>
Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/freevo/main.py", line 315, in
eventhandler
    app.eventhandler(event)
  File "/usr/lib/python2.3/site-packages/freevo/menu.py", line 627, in
eventhandler
    if menu.selected.eventhandler(event = event, menuw=self):
  File
"/mnt/datos/usr/lib/python2.3/site-packages/freevo/video/videoitem.py", line
662, in eventhandler
    if self.player:
AttributeError: VideoItem instance has no attribute 'player'



It seems that self.player is not defined in the __Init__ of the VideoItem
class but in the actions() method.

Initializing the variable in the line 125 of the videoitem.py
solves the problem


--- video/videoitem.py.old      2006-02-19 14:39:47.000000000 +0100
+++ video/videoitem.py  2006-02-19 14:42:48.000000000 +0100
@@ -122,6 +122,8 @@

         self.possible_player   = []

+        self.player            = None
+
         # find image for tv show and build new title
         if config.VIDEO_SHOW_REGEXP_MATCH(self.name) and not
self.network_play and \
                config.VIDEO_SHOW_DATA_DIR:


-- 

Attachment: signature.asc
Description: Digital signature

Reply via email to