[Zope] Random choice in <dtml-in>?

J. Atwood jatwood@bwanazulia.com
Thu, 7 Dec 2000 11:02:58 -0500


Ok.. so I can get a random item out of a folder with.

<dtml-var expr="_.whrandom.choice(folder_name.objectValues())">

And I can iterate through a folder with

<dtml-in "folder_name.objectValues()" size="1">
	<dtml-var id>, <dtml-var title>, <dtml-var other_attribute>
</dtml-in>

But I want to include the random statement within the <dtml-in> so I 
can get more of the object values back.

I know this must be some little ._."_.. or other such mix but I am 
getting frustrated trying.

Thanks,
J