[Zope] random question

Erik Myllymaki erik@pacific-shores.com
Wed, 05 Sep 2001 19:07:38 -0700


I am successfully using the following code to select a random FSPollQuestion
object to disply on every page:

<dtml-with expr="_.whrandom.choice(Survey.objectValues('FSPollQuestion'))">
<dtml-var vote_small_html>
</dtml-with>

I would like to be able to go one step further and only call those objects
whose "open" value is set to 1.

Any suggestions?

Thanks,


-- 
Erik Myllymaki
erik@pacific-shores.com