[Zope] nasty problem with tinytableplus

Dominique Lederer lederer at dmc01.at
Fri Oct 22 14:56:04 EDT 2004


hi!

i want to use the tinytable function "setRow" within a python script.

"setRow" has the following syntax
setRow('value1','value2,'value3')
or
setRow(column1='value1', column2='value2, column3='value3')

that worked for me (if i write the arguments myself)
but i want to pass the arguments dynamically

so i coded the following:

newRow=""
for field in something:
   newRow += "%s," % field.value() #create string with the form "value1,  
value2, value3"
context.mytinytable.setRow(newRow)

but i get the following error message:
Error Value: list objects are unhashable

i also tried to pass the arguments with dicts, arrays, etc it won´t work...

please help, what to i have to do to pass dynamically created arguments to  
this function.

tnx in advance
HakTom



More information about the Zope mailing list