I'm still struggling with Tiny Tables. Why does this flag an error?? <dtml-call "REQUEST.set('table','thenameofmytinytable')"> <dtml-call "REQUEST.set('tableData',_.chr(34)+'Mydata'+_.chr(34) + '\n')"> <dtml-call "table.manage_editData(tableData)"> Error Type: AttributeError Error Value: 'string' object has no attribute 'manage_editData' -- Graham Chiu
On Fri, 20 Oct 2000, Graham Chiu wrote:
I'm still struggling with Tiny Tables.
Why does this flag an error??
<dtml-call "REQUEST.set('table','thenameofmytinytable')">
Here's your problem. You're setting table to be a string containing the name of your tiny table. <dtml-call "REQUEST.set('table', thenameofmytinytable)"> Why don't you try <dtml-call "_.getitem('thenameofmytinytable').manage_editDate(tableDate)"> instead?
<dtml-call "REQUEST.set('tableData',_.chr(34)+'Mydata'+_.chr(34) + '\n')"> <dtml-call "table.manage_editData(tableData)">
Error Type: AttributeError Error Value: 'string' object has no attribute 'manage_editData'
This error is the giveaway. table is a "string", not a "tiny table".
-- Graham Chiu
Have a better one, Curtis Maloney.
On Fri, 20 Oct 2000 11:30:46 +1100 Curtis Maloney <curtis@cardgate.net> wrote:
Why don't you try
<dtml-call "_.getitem('thenameofmytinytable').manage_editDate(tableDate)">
instead?
Thanks. I tried this last night, and it didn't work for me, and now it does :-( I was following the howto at http://www.zope.org/Members/cguardia/changeTinyTable which doesn't use the getitem() function. -- Graham Chiu
participants (2)
-
Curtis Maloney -
Graham Chiu