[Zope] curious list problem

Paul Winkler pw_lists@slinkp.com
Thu, 26 Jun 2003 17:04:12 -0400


On Thu, Jun 26, 2003 at 04:24:16PM -0400, 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.

Maybe you could tell us what you're trying to achieve, rather than
how you're trying to do it?
In general, mucking around with data structures should be done
in a Script (Python) and not in a DTML method/document.

-- 

Paul Winkler
http://www.slinkp.com
Look! Up in the sky! It's ROBOT SPOON!
(random hero from isometric.spaceninja.com)