Hans Meine wrote:
> Hi Duncan,
> 
>> 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.

# grep -r 'post_event.*SCREENSAVER_START' src/

src/plugins/freevoscreensaver.py:
rc.post_event(em.Event('SCREENSAVER_START'))

src/plugins/screensaver/__init__.py:
rc.post_event(Event('SCREENSAVER_START'))

I is odd that you are seeing an event without a name. Must admit I don't
see how this is possible.

Duncan

------------------------------------------------------------------------------
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
Freevo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to