[Zope] Assigning One dtml-var to Another

Chris Withers chrisw@nipltd.com
Tue, 30 Oct 2001 13:19:00 +0000


Ben Ocean wrote:
> 
> Hi;
> I have a dtml-var called *select-blueline* It reads thus:
> <dtml-var expr="_.whrandom.choice(images.bluelines.objectValues(['DTML
> Method']))">
> I need to be able to assign the value generated from this method to ANOTHER
> method that I can call. In other words...
> <dtml-var x> = <dtml-var select-blueline>
> Then later call <dtml-var x> How do I do this?

Ben, you really should be using a Python Script for this kind of logic.

Why on earth are you doing it in DTML?

cheers,

Chris