I'm trying to convert data entered in a form to a format that I can
manipulate later, specifically, I need to convert " (double quotes) and
possibly ' (single-quotes) to the appropriate HTML substitute, like quot .
What's the easiest way to do this? Is there built-in Zope functionality for
this,
Hey, I'm having trouble accessing variables in a 2-dimensional list. Here's
the creation code:
dtml-call "REQUEST.set('col', [])"
dtml-in "_.range(0, 24)"
dtml-call "col.append([])"
dtml-let hour="_['sequence-item']"
dtml-in "_.range(0, hour_divisions)"
dtml-call
Nope, still nothing...
dtml-call "REQUEST.set('col[index1][index2]', 5)"
Just try it without the single quotes:
dtml-call "REQUEST.set(col[index1][index2], 5)"
___
Zope maillist - [EMAIL PROTECTED]
OK, figured it out. About the only way I can see to do it in DTML is this:
dtml-call "col[index1].insert(index2, col[index1].pop(index2)+1)"
This command happens to increment the value at col[index1][index2], and this
strategy allows any operation to be done on the value. It appears to be