Hi
2009/3/9 James Rubino <james.rub...@gmail.com>
> Some times there is a lapse in my internet connection. If this
> happens while running a script, then the whole script stops and I have
> to start over.
>
IMO, this should be handled by the script that calls imdbpy.
This is how I modified the mythtv python scripts that use imdbpy:
http://svn.mythtv.org/trac/attachment/ticket/6219/imdb_script5.patch
It is much cleaner to keep the connection itself from the handling of
timeout and disconnection.
That way it respects the ISO model
It's also the way urllib works ; it's up to the caller to handle the timeout
and disconnection.
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel