[Zope-dev] random

Dieter Maurer dieter@handshake.de
Fri, 12 Apr 2002 22:01:31 +0200


Mario Carina writes:
 > I need to extract, form my metapublisher object, one of my entrys
 > randomly.
 > i have found this command but it's good for some static pages.
 > <!--#var expr="_.whrandom.choice(glossario.objectValues())"-->
It is good for any sequence.

Learn how to get a sequence from MetaPublisher (I do not know it,
but it will not be difficult) and apply the "choice" function
to it.


Dieter