[Zope] Qurying a TinyTable (plus)

Mark Gibson mark at kaivo.com
Wed May 5 13:01:29 EDT 2004

Philip Kilner wrote:
> Hi List,
> Have developed a parameter driven process which is driven by a list of 
> sets of parameters listed in a tiny table. Am trying to find the correct 
> syntax to pull out a given column where the index is specified, in a 
> python script.
> 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"


value1 = mytable(mykey="1")[0]['myvalue']
value1 = mytable(mykey="2")[0]['myvalue']


More information about the Zope mailing list