[Zope] Variable names in records

Matthew Fairclough faircloughm@dodo.com.au
Thu, 10 Oct 2002 13:56:38 +0800


I have a form with radio button entry that I'm trying to pass to a 
database.  I found a workaround by hawkfish which solved the problem of 
how to get the radio buttons working within dtml-in using 
'sequence-number' (otherwise the whole form is just one button).  This 
is the only method I've found that works.  The record comes out as:

[{'FieldKey': '1', 'description1': '1', 'item1': 'test', 
'quantity1': 'test'}, {'FieldKey': '2', 'description2': '2', 
'item2': 'test', 'quantity2': ''}, etc

My variable is 'description', but in the record it's 'description1', 
'description2' etc.   How do I render it as <dtml-var description>?

I think this has something to do with  splitting the string but I don't 
know much about that.  Where do I start?

Many thanks.

Regards,

Matthew.