[Zope] Upload a Zclass with a script
Christophe Bec
christophe.bec@cgey.com
Mon, 9 Jul 2001 15:49:04 +0200
C'est un message de format MIME en plusieurs parties.
------=_NextPart_000_0024_01C1088E.AE100BF0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi,
I've a Zclass with "File" inheritance
How can i do to upload a file with a script during instanciation (dtml =
or python)
trying <dtml-var "REQUEST.set('file','c:\test.txt')"> gives me a =
instance, taking 'c:\test.txt' as a string and not as an object
Thanks
------=_NextPart_000_0024_01C1088E.AE100BF0
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 http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4522.1800" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>Hi,</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>I've a Zclass with "File" inheritance</FONT></DIV>
<DIV><FONT size=3D2>How can i do to upload a file with a script during=20
instanciation (dtml or python)</FONT></DIV>
<DIV><FONT size=3D2>trying <dtml-var =
"REQUEST.set('file','c:\test.txt')">=20
</FONT> <FONT size=3D2>gives me a instance, =
taking 'c:\test.txt'=20
as a string and not as an object</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>Thanks</FONT></DIV></BODY></HTML>
------=_NextPart_000_0024_01C1088E.AE100BF0--