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
Andreas Jung wrote:
allow_module() is not a solution for all and everything (consider it a
hack).
Don't be rediculous. It's not a hack, it's the documented way of
providing security assertions from existing code without having to patch
it. That sounds a lot like what the component
Hi,
Apologies if this is easy to do, cannot find any help in the archives
(but then again not sure what to search for)
We currently run a script on an external server which returns results
depending on the userid of the user, which is added to the link below
once the user logs into zope.
--On 15. März 2006 09:14:42 + Dean Hale [EMAIL PROTECTED]
wrote:
a href= tal:define=uid python:member.getProperty('uid')
tal:attributes=href
string:http://site.ac.uk/cgi-bin/tasks?uid=$uidfmt=plain;view
results/a
Look at Python's urllib module.
-aj
Hi Andreas,Thanks for this i'm trying to use an example belowfrom urllib import *url = ''">http://site.ac.uk/cgi-bin/evisiontasks?uid=xxx0xxxfmt=plain'html = urlretrieve(url).read()however am receiving the errorError Value: "from urllib import *" is not allowedi have followed the readme in
--On 15. März 2006 12:03:48 + Dean Hale [EMAIL PROTECTED]
wrote:
Hi Andreas,
Thanks for this i'm trying to use an example below
from urllib import *
url = 'http://site.ac.uk/cgi-bin/evisiontasks?uid=xxx0xxxfmt=plain'
html = urlretrieve(url).read()
however am receiving the error