[Zope] random objects

Dan Jacobs dan@caliginous.com
Sun, 28 Jul 2002 21:00:31 +0100 (BST)


thanks, that was it!

dj

On Sun, 28 Jul 2002, Chris McDonough wrote:

> Does this work?
>
> <dtml-let random="_.whrandom.choice(blah.objectValues())">
>    <dtml-var random>
> </dtml-let>
>
> At least if all the objects in blah are dtml methods or dtml
> documents, it works fine for me...
>
> ----- Original Message -----
> From: "Dan Jacobs" <dan@caliginous.com>
> To: <zope@zope.org>
> Sent: Sunday, July 28, 2002 3:40 PM
> Subject: [Zope] random objects
>
>
> > Hi All,
> >
> > I'm trying to have a section of an HTML page rotate randomly.  I am
> using
> > this dtml;
> >
> > <dtml-var expr="_.whrandom.choice(blah.objectValues())">
> >
> > this works fine for text but what do I do if I want to include html
> in
> > this?  at the moment it doesn't render it.
> >
> > Thanks
> >
> >  - Dan Jacobs
> >
> >
> > _______________________________________________
> > Zope maillist  -  Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > **   No cross posts or HTML encoding!  **
> > (Related lists -
> >  http://lists.zope.org/mailman/listinfo/zope-announce
> >  http://lists.zope.org/mailman/listinfo/zope-dev )
> >
>

 - Dan Jacobs
 - 07956 246 659