[Zope] Get attributes of a doc in another folder
Gilles Lenfant
glenfant@bigfoot.com
Wed, 9 May 2001 20:16:00 +0200
C'est un message de format MIME en plusieurs parties.
------=_NextPart_000_0052_01C0D8C4.DD465EA0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi from a newbie,
I got a dtml method at "/project" folder from which I want to add =
attributes to a dtml doc at "/project/folder/adocument"
I tried to embed 2 consecutive <dtml-with> like following but it don't =
work. Did I miss something ?
<dtml-with folder>
<dtml-call "manage_addDTMLDocument(id=3Daname,title=3Dprenom+' =
'+nom,file=3D'')">
<dtml-with expr=3D"aname">
<dtml-call =
"manage_addProperty(id=3D'alias',value=3Dalias,type=3D'string')">
</dtml-with>
</dtml-with>
This adds the attribute to folder when I want it in adocument .
I'm lost somewhere...
TIA
Gilles
------=_NextPart_000_0052_01C0D8C4.DD465EA0
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.3018.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi from a newbie,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I got a dtml method at "/project" =
folder from=20
which I want to add attributes to a dtml doc at=20
"/project/folder/adocument"</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I tried to embed 2 consecutive =
<dtml-with>=20
like following but it don't work. Did I miss something ?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><dtml-with folder></FONT><FONT =
face=3DArial=20
size=3D2><BR><dtml-call =
"manage_addDTMLDocument(id=3Daname,title=3Dprenom+'=20
'+nom,file=3D'')"></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><dtml-with =
expr=3D"aname"><BR><dtml-call=20
"manage_addProperty(id=3D'alias',value=3Dalias,type=3D'string')"><BR>&=
lt;/dtml-with></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></dtml-with></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>This adds the attribute to folder when =
I want it in=20
adocument .</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm lost somewhere...</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>TIA</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Gilles<BR></DIV></FONT></BODY></HTML>
------=_NextPart_000_0052_01C0D8C4.DD465EA0--