Python & Zope
Garry Steedman
gs at styrax.com
Tue Oct 9 12:28:07 EDT 2001
Jonathan,
read Ch. 8 of the Zope Book: it points out some of the pitfalls!
cheers,
Garry
On 9 Oct 2001, at 15:21, jonathan.2.wilkinson at bt.com wrote:
From: jonathan.2.wilkinson at bt.com
To: python-list at python.org
Subject: Python & Zope
Date sent: Tue, 9 Oct 2001 15:21:57 +0100
> Anyone,
>
> I'm trying to do this incredibly simple python script in zope: -
>
> myfile = open('myfile', 'w')
> myfile.write('hello\n')
> myfile.close()
>
> It works from a python interpreter fine......but when I try to test it
> I get
>
>
> Error Type: NameError
> Error Value: global name 'open' is not defined
> Any ideas how to read/write a text file in zope using python?????Can
> it be done? Any other methods of writing and reading randomly (well
> structured sort of way, but from anywhere within the file) in zope??
>
> Please help,
> Regards,
> Jono
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
+-------------------------------------------+
Garry Steedman mailto:gs at styrax.com
Styrax Associates http://www.styrax.com/
"The Good Man has no shape."
+-------------------------------------------+
More information about the Python-list
mailing list