I suggest you install DocFinderEverywhere <http://www.zope.org/Members/shh/DocFinderEverywhere> You will then be easily able to find out that File's manage_edit takes the following parameters: self, title, content_type, precondition='', filedata=None, REQUEST=None Your call should thus look something like (untested): yourfile.manage_edit('yourtitle', 'text/html', filedata='yourdata') HTH, Stefan --On Mittwoch, 24. Juli 2002 12:58 +0200 Bjørge Solli <bjorge@ii.uib.no> wrote:
I am trying to make and change a textfile.
I'm trying to do it this way: context.manage_addFile(id) getattr(context,id).manage_edit(title,data)
This sets content_type(Property) to the value of data. I want to put the contents of data INTO the file, and have content_type to be text/html.
Any suggestions?
Thanks in advance. regards Bjorge -- -- Those who write software only for pay should go hurt some other field. /Erik Naggum/