Can't open file via Python
29 Mar
2001
29 Mar
'01
8:49 a.m.
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
9138
Age (days ago)
9138
Last active (days ago)
0 comments
1 participants
participants (1)
-
Geoff Armstrong