[Zope] curious list problem

Dylan Reinhardt zope@dylanreinhardt.com
26 Jun 2003 13:57:03 -0700


Try:

<dtml-call "thing.update({'items':[]})">

HTH,

Dylan



On Thu, 2003-06-26 at 13:24, Mark Nenadov wrote:
> Hello all,
> 
> In python I would normally do the following to make a associative array
> (with an element that is a list) empty:
> 
> thing['items'] = []
> 
> This seems like such a minor thing to do, but I can't seem to get this
> to work with DTML. How would I do the equivalent in DTML??? I've tried
> using REQUEST.set() and also just a straight dtml-call expression, and
> neither seemed to work.
> 
> I'd appreciate some help or guidance.
> 
> ~Mark
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )