[Zope] conditional dtml-in ?

Ruberl Michele mruberl@etnoteam.it
Wed, 7 Nov 2001 17:32:23 +0100


If I do

<dtml-if expr=3D"my_attribute =3D=3D 1">
   <dtml-in>
   </dtml-in>
</dtml-if>

my_attribute isn't an attribute of each sequence_item

If I do

<dtml-in>
   <dtml-if>
   </dtml-if>
</dtml-in>

I cannot use the dtml-in modifiers, like start=3D"1", size=3D"10">...
I mean, I can use them but I'd like them to mean "start from position 1 =
of
the sequence of the items matching the where-like clause" and "take the
first 10 elements of the sequence of the items matching the where-like
clause". Am I wrong?

Michele


> -----Original Message-----
> From: Garry Steedman [mailto:gs@styrax.com]
> Sent: mercoled=EC 7 novembre 2001 18.28
> To: Ruberl Michele
> Cc: zope@zope.org
> Subject: Re: [Zope] conditional dtml-in ?
>=20
>=20
> Michele,
>=20
> am i missing something, why dont you do
>=20
> <dtml-if>
>   <dtml-in>
>   </dtml-in>
> </dtml-if>
>=20
> or some combination thereof???
>=20
> cheers,
>=20
> garry
>=20
> On 7 Nov 2001, at 17:18, Ruberl Michele wrote:
>=20
> From:           	Ruberl Michele <mruberl@etnoteam.it>
> To:             	"'zope@zope.org'" <zope@zope.org>
> Subject:        	[Zope] conditional dtml-in ?
> Date sent:      	Wed, 7 Nov 2001 17:18:03 +0100
>=20
> > Hi everybody,
> >=20
> > is there a way of making <dtml-in> loops conditionally?
> >=20
> > I would need something like <dtml-in =
expr=3D"objectValues('MyZClass')"
> > where=3D"my_attribute =3D=3D 1"> Does anybody have a method doing=20
> this or a
> > way to help me?
> >=20
> > Thanks a lot
> >=20
> > Michele=20
> >=20
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -=20
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
>=20
>=20
> +-------------------------------------------+
>   Garry Steedman      mailto:gs@styrax.com =20
>   Styrax Associates  http://www.styrax.com/=20
>=20
>   "The Good Man has no shape."           =20
> +-------------------------------------------+
>=20