Hi Andreas,
Thanks for this i'm trying to use an example below
from urllib import *
html = urlretrieve(url).read()
however am receiving the error
Error Value: "from urllib import *" is not allowed
i have followed the readme in python/Products/PythonScripts and created a __init__.py file and it has created a __init__.pyc file once the server has restated.
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')
Sorry if the answer is obvious.
thanks
dean
On 15 Mar 2006, at 09:23, Andreas Jung wrote:
<a href="" tal:define="uid python:member.getProperty('uid')"
tal:attributes="href
results</a>
Look at Python's urllib module.
-aj
-----------------------------------------------------------------------
- Andreas Jung ZOPYX Ltd. & Co KG -
-----------------------------------------------------------------------
---------------
Dean Hale
Web Development Manager
Library Services
University of Sunderland
w: https://my.sunderland.ac.uk
t: +44 (0) 191 515 2424
f: +44 (0) 191 515 2904