[Zope] PARENTS

giaco johanesw@citeweb.net
Mon, 17 Sep 2001 16:13:03 +0200


--=====================_446967595==_.ALT
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Content-Transfer-Encoding: quoted-printable

hello all,

a question :
  I've this...

<dtml-with "mptrois.news.materiel">
<dtml-with "mptrois.news.logiciels">
<dtml-with "mptrois.news.actualite">

<dtml-in "objectValues(['mptrois_guide_fiche'])" sort=3D"fiche_date"=
 size=3D"1"=20
reverse>
...

but i its works only on the last item.

SO :
i want to do that :

<dtml-with "mptrois.news">
<dtml-with "PARENTS[-1]">


to have a list after the end of the first "with" and browse in a forder.

-news           (an instance class called news)
  * actu (an instance class of news called news_actu)
  * soft
  * hard


etc

THX a lot

GiaK
(from paris h=E9h=E9)
--=====================_446967595==_.ALT
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
hello all,<br><br>
a question :<br>
&nbsp;I've this...<br><br>
&lt;dtml-with &quot;mptrois.news.materiel&quot;&gt;<br>
&lt;dtml-with &quot;mptrois.news.logiciels&quot;&gt;<br>
&lt;dtml-with &quot;mptrois.news.actualite&quot;&gt;<br><br>
&lt;dtml-in &quot;objectValues(['mptrois_guide_fiche'])&quot;
sort=3D&quot;fiche_date&quot; size=3D&quot;1&quot; reverse&gt;<br>
...<br><br>
<i>but i its works only on the last item.<br><br>
</i><b>SO :<br>
</b>i want to do that :<br><br>
&lt;dtml-with &quot;mptrois.news&quot;&gt;<br>
&lt;dtml-with &quot;PARENTS[-1]&quot;&gt;<br><br>
<br>
to have a list after the end of the first &quot;with&quot; and browse in
a forder.<br><br>
-news<x-tab>&nbsp;&nbsp;&nbsp;</x-tab><x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;</x-tab>(an
instance class called news)<br>
&nbsp;* actu<x-tab>&nbsp;</x-tab>(an instance class of news called
news_actu)<br>
&nbsp;* soft<br>
&nbsp;* hard<br><br>
<br>
etc<br><br>
THX a lot<br><br>
GiaK<br>
(from paris h=E9h=E9)</html>

--=====================_446967595==_.ALT--