[Zope] How do I utilize manage_edit in a stand alone form?

grissom@qwickconnect.net grissom@qwickconnect.net
Wed, 04 Jun 2003 13:12:01 -0700


All,

I have a form (edit_file) and a method (edit) in which i am
trying to use to edit a single fille.

The examples below are not working.

What am I missing.

Regards, Rob a greatful newbie.

============
Form

<form action="edit_file" name="data" method="post">
<table cellpadding="2" cellspacing="0" width="100%"
border="0">
	<tr>
		<td align="left" valign="top"></td>
		<td align="left" valign="top"></td>
	</tr>
	<tr>
		<td align="left" valign="top" colspan="2">
		<textarea name="data:text" wrap="off" cols="90"
rows="35"><dtml-var file1></textarea>
		</td>
	</tr>
	<tr>
		<td align="left" valign="top" colspan="2">
		<input type="submit" name="SUBMIT" value="Save Changes">
		</td>
	</tr>
</table>
</form>

=====================

Method

<dtml-var standard_html_header>
<dtml-call "file1.manage_edit(file1, data, title)">
<dtml-call "RESPONSE.redirect('http://www.somewhere.com')">
<dtml-var standard_html_footer>