[Zope] Re: nasty problem with tinytableplus
David Chandek-Stark
dc at duke.edu
Tue Oct 26 09:43:59 EDT 2004
Perhaps this:
context.mytinytable.setRow(something[0].value(),
something[1].value(),
something[2].value()
)
Dominique Lederer wrote:
> 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
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
--
David Chandek-Stark
Web Applications Developer
Duke University - Perkins Library
(919) 660-5859
dc at duke.edu
More information about the Zope
mailing list