Hi,
I use YouTube Data API (
http://code.google.com/apis/youtube/1.0/developers_guide_python.html
http://code.google.com/apis/youtube/1.0/developers_guide_python.html ) to
fetch videos and other youtube informations.
Sometimes (not that often, but it happened) the python call "freezes" while
waiting for youtube data, and this is a problem because it "freezes" my
page.
I tried a timeout decorator ( http://pypi.python.org/pypi/timeout/0.1.2
http://pypi.python.org/pypi/timeout/0.1.2 ) but I get this error:
"ValueError: signal only works in main thread".
A timeout could be useful to handle also other python libs (twitter, flickr
etc) and avoid these blank pages when the external service does not respond.
Has somebody faced this problem? Is there a solution?
I'm using python2.4 and Plone 3.

Thank you all,
Marco C.

--
View this message in context: 
http://plone.293351.n2.nabble.com/Timeout-decorator-on-external-service-call-tp7063682p7063682.html
Sent from the Product Developers mailing list archive at Nabble.com.
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to