Hi Mark, Mark Gibson wrote:
Can anyone give me a clue, or point to a fuller example than those in the TinyTable docs please?
Say you have:
TinyTable : mytable Columns : mykey myvalue mykey myvalue --------------- "1" "One" "2" "Two"
Then:
value1 = mytable(mykey="1")[0]['myvalue'] value1 = mytable(mykey="2")[0]['myvalue']
Thanks very much - that worked first time! I now have: - container.REQUEST.SESSION.set('process_spec', container.process_spec(step='1')[0]['form_name']) ...so with your help I now have the bones of something I can automate. My only problem is that I don't /really/ understand how it works! Clearly, process_spec(step='1') is referring to the index of my TinyTable. But the significance of [0] and the way in which ['form_name'] seems to be "outside" the clause are confusing the hell out of me! Anyone kind enough to clue me in? -- Regards, PhilK Email: phil@xfr.co.uk / Voicemail & Facsimile: 07092 070518 "The lyf so short, the craft so long to learne" - Chaucer