Dean Hale wrote:


I'm assuming i need to add some extra details to the __init__.py file is this correct and if so have you any ideas what they would be

from Products.PythonScripts.Utility import allow_module

allow_module('urllib')

I dunno if it'll help, but try enabling verbose security in your zope.conf.

However, you may just need to fiddle.

Try adding some allow_* statements for urlopen as well as anything else you import from urllin and see how you go.

That said, it may be easier (and execute faster) if you just duck out and use an external method.

Also, be aware that doing what you're doing, the performance of your website now depends on the performance of another website, and the network between your webserver and the other webserver. This may not be what you want. You should certainly look at introducing a socket timeout for those connections....

Chris

--
Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to