12 Apr
2002
12 Apr
'02
1:21 p.m.
hello to everyone. I'm new in this mailing list and also with Zope. This is my question: 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())"--> hope you understood my request. thank you mario
12 Apr
12 Apr
8:01 p.m.
New subject: [Zope-dev] random
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
8783
Age (days ago)
8783
Last active (days ago)
1 comments
2 participants
participants (2)
-
Dieter Maurer -
Mario Carina