Hi Duncan,

thanks for your answers.

On Sonntag 01 Februar 2009, Duncan Webb wrote:
> >   File "/usr/lib/python2.5/site-packages/freevo/plugins/autoshutdown.py",
> > line 364, in eventhandler
> >     if plugin.isevent(event) != 'IDENTIFY_MEDIA' and
> > event.name != 'SCREENSAVER_START':
> > AttributeError: 'str' object has no attribute 'name'
>
> This is weird, I use the autoshutdown module and don't see this error.

Good to know.

> But I think the test is incorrect. It should be
> and event != Event('SCREENSAVER_START')
> again freevo prompt comes in handy here:
> # freevo prompt
> Python 2.6.1 (r261:67515, Jan 24 2009, 14:48:40)
> [GCC 4.1.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>
> >>> from event import *
> >>> Event('SCREENSAVER_START')
>
> SCREENSAVER_START: <class 'event.Event'>

I agree that freevo prompt is very handy, but the above does not help in 
finding out which event did not have a "name" property. I changed the code 
now, also cleaning up some other things at the same time.  Let's see whether 
that works or the exception happens again.

> There seems to be problem with kaa.display and autoshutdown, at least
> last time I enabled this. So I removed the kaa.display from the
> site-packages which fixed the problem.

Oh, I already removed kaa.display for some other reason, so that cannot be the 
cause for me.

-- 
Ciao, /  /                                                    .o.
     /--/                                                     ..o
    /  / ANS                                                  ooo

Attachment: signature.asc
Description: This is a digitally signed message part.

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to