Hi Mark, Mark Gibson wrote:
mytable() querys the tt and returns a list of dictionaries ( or at least something that implements a dictionary interface). Any query to the tt will return a list of dictionaries.
So for the above example: mytable() will return all the rows in the tt: [ { "mykey":"1", "myvalue":"One" }, { "mykey":"2", "myvalue":"Two" } ]
Given this, mytable(mykey="1") will return: [ {"mykey":"1", "myvalue":"One"}, ]
From there, you should be able to figure out what the rest of it does.
I'm going to go away and play with that - time to give "Learning Python" some more hammer! Thanks again! -- Regards, PhilK Email: phil@xfr.co.uk / Voicemail & Facsimile: 07092 070518 "The lyf so short, the craft so long to learne" - Chaucer