[Zope] manage_edit or manage_upload help
Ravneet Sachar
rsachar@mail.smu.edu
Thu, 3 Apr 2003 12:57:11 -0600
This is a multi-part message in MIME format.
------=_NextPart_000_062E_01C2F9E0.8AABA350
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I have created a file object from the OFSP product using manage_addFile. =
This works great.
Now I am creating a form to edit the contents of the file. On submitting =
this form, I want the file data to be updated with what was there in the =
textarea of the form. Seems simple, and I tried to use manage_edit or =
manage_upload from my python script.
I am unsuccessful in doing this and get Attribute Errors.=20
I would appreciate it if someone could send some example code to help me =
update the contents of a file object.=20
Thanks
Ravneet
------=_NextPart_000_062E_01C2F9E0.8AABA350
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I have created a file object from the =
OFSP product=20
using manage_addFile. This works great.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Now I am creating a form to edit the =
contents of=20
the file. On submitting this form, I want the file data to be updated =
with what=20
was there in the textarea of the form. Seems simple, and I tried to =
use=20
manage_edit or manage_upload from my python script.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I am unsuccessful in doing this and get =
Attribute=20
Errors. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I would appreciate it if someone could =
send some=20
example code to help me update the contents of a file object. =
</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Ravneet</FONT></DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_062E_01C2F9E0.8AABA350--