[Zope] Instanciate a Zclass with "File" inheritance

Christophe Bec cbec@capgemini.fr
Fri, 29 Jun 2001 15:58:40 +0200


C'est un message de format MIME en plusieurs parties.

------=_NextPart_000_004D_01C100B4.5D468320
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

How can I do to automatically instanciate a Zclass that is a subclass of =
"File" with DTML ?
trying <dtml-call "REQUEST.set('file','c:\test.doc')"> brings the value =
of file as a string object and not as a file object

What can I do ??

thanks
christophe bec
cbec@capgemini.fr


------=_NextPart_000_004D_01C100B4.5D468320
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>How can&nbsp;I do to automatically instanciate a =
Zclass that=20
is a subclass of "File" with DTML ?</FONT></DIV>
<DIV><FONT size=3D2>trying &lt;dtml-call =
"REQUEST.set('file','c:\test.doc')"&gt;=20
brings the value of file as a string object and not as a file=20
object</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>What can&nbsp;I do ??</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>thanks</FONT></DIV>
<DIV><FONT size=3D2>christophe bec</FONT></DIV>
<DIV><FONT size=3D2><A=20
href=3D"mailto:cbec@capgemini.fr">cbec@capgemini.fr</A></FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_004D_01C100B4.5D468320--