[Zope] parsing strings in DTML
R. David Murray
bitz@bitdance.com
Mon, 26 Jun 2000 16:02:54 -0400 (EDT)
On Mon, 26 Jun 2000, Timothy Wilson wrote:
> "REQUEST.set('parsed_address', _.string.join(old_address, '$')"> except for
This is exactly correct. Inside the quotes you are in python, and
so you can reference variables from the namespace by their unadorned name.
> Second question... Once I've got my string parsed into a list called
> "parsed_string", what's the syntax for accessing certain elements of the
> list?
parsed_string[0], parsed_string[1], ... (inside an expr, of course).
--RDM