Tanja wrote:
> 1.) How do I make sax ignore the dtd file?
I think like this:

    parser = xml.sax.make_parser()
    parser.setFeature('http://xml.org/sax/features/external-general-entities', 
False)


>     raise RuntimeError('add_program_wait not called by thread')
> RuntimeError: add_program_wait not called by thread
>
> Any hints?
Yes the problem is that add_program_wait is not being called from a
thread. :)  In your code:

    kaa.notifier.execute_in_thread('epg')
    def update(epg):
        """
        Interface to source_xmltv.
        """

      

The first line is supposed to be a decorator, but it is missing the @ so
as a result it just gets invoked (as a function), and does not actually
decorate update().  So change it to this:

    @kaa.notifier.execute_in_thread('epg')
    def update(epg):
        """
        Interface to source_xmltv.
        """

      

Cheers,
Jason.


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-devel

Reply via email to