[Zope] Qurying a TinyTable (plus)

Philip Kilner phil at xfr.co.uk
Wed May 5 13:52:30 EDT 2004


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 at xfr.co.uk / Voicemail & Facsimile: 07092 070518

"The lyf so short, the craft so long to learne" - Chaucer




More information about the Zope mailing list