[Zope] random object with properties

Steve Spicklemire steve@spvi.com
Tue, 21 Nov 2000 16:10:59 -0500 (EST)


Hmm.. How about something like:

<dtml-let random_image="_.whrandom.choice(objectValues('Photo'))">
 <dtml-var random_image>
 <dtml-if "_.hasattr(random_image,'caption')"><dtml-var "random_image.caption"></dtml-if>
</dtml-let>

-steve