Hi,
I want to open and read a file via Python; but whether I try to
do it via a Python method or an external Python script stored in the
Zope extensions folder, the result is the same.
I'm using this code for a file name I pass in as a
parameter:
data = open(file, 'r')
return data
...and I get this result:
Error
Type: NameError
Error
Value: open
The Python method has a proxy role of Manager and so does the
DTML script which calls it.
The same thing happens when I try read or readline. I know Python
methods are limited in certain ways; but external scripts?
Please help
Thanks
Geoff Armstrong