[Zope] how-to generate a DTMLMethod from a random zClass in a Folder???

Chris Withers chrisw@nipltd.com
Sun, 9 Sep 2001 16:14:05 +0100


> Maybe someone can check my logic...? please.
> <dtml-with folderwithmyZclasses>
> <dtml-var
> expr="_.random.choice(objectValues('myZclass').myZclassDTMLmethod)">
> </dtml-with>

<dtml-with folderwithmyZclasses>
  <dtml-var

expr="_.random.choice(objectValues('myZclass')).myZclassDTMLmethod(_.None,_)
"
  >
</dtml-with>

cheers,

Chris

PS: DTML and logic in your presentation layer is another route to misery and
pain ;-)

I'd recommend Python Scripts and ZPT...