[Zope] SOLVED: Zope lockups using an External Method

Adam Warner lists@consulting.net.nz
10 Sep 2001 15:18:06 +1200


On Mon, 2001-09-10 at 14:05, Adam Warner wrote:

> 	thefile=open('aaa123.doc','w')
> 	thefile.write(str(inputdoc.data))
> 	thefile.close

The answer is simple. Being a Python newbie at first I didn't notice the
problem. The last line should read:

thefile.close()

Then the file actually closes and everything works :-)

Regards,
Adam