[Zope] Dealing with Dictionaries

Evan Simpson evan@4-am.com
Wed, 1 Mar 2000 16:04:47 -0600


----- Original Message -----
From: James W. Howe <jwh@allencreek.com>
> to be able to get a list of values.  I could easily do this in Python, but
> I'm sure there must be a simple way to do this in DTML.  I tried something
> like:
>
> <dtml-return "_['dictionaryVariableName'].keys()">
>
> but that didn't work.  I did notice that if I just used
> "_['dictionaryVariableName']" I actually got the keys.

That should have worked.  You should be able to manipulate your dictionary
just as you would expect.  What happened when you tried it? What do you get
from <dtml-var expr="_['dictionaryVariableName']">?

Cheers,

Evan @ 4-am & digicool