[Zope] display results from external source in zpt
Chris Withers
chris at simplistix.co.uk
Thu Mar 16 02:31:14 EST 2006
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
More information about the Zope
mailing list