Using TinyTablePlus for the first time. So I have: testtable - email* timestamp I want to overwrite NULL for timestamp in each row. <dtml-in emailtable> <dtml-call expr="REQUEST.set('tID', ZopeTime().toZone('EST').timeTime())"> <dtml-call "setRow(email=email, ID=tID)"> </dtml-in> And get: Error Type: NameError Error Value: global name 'setRow' is not defined ..and... <dtml-call "testtable.setRow(email=email, ID=myEID)"> Error Type: AttributeError Error Value: Results instance has no attribute 'setRow' So how do I rewrite the current row? ThankU, -Trevor
Hi, try this: <dtml-in expr="emailtable.getRows()"> <dtml-call expr="REQUEST.set('tID', ZopeTime().toZone('EST').timeTime())"> <dtml-call "emailtable.setRow(email=email, ID=tID)"> </dtml-in> Otherwise the dtml-in is overriding the variable 'emailtable' with the result of calling the zope-object 'emailtable' and thus preventing you from accessing it. Wolfram ----- Original Message ----- From: "Trevor Toenjes" <zope@toenjes.com> To: <zope@zope.org> Sent: Friday, November 30, 2001 10:26 PM Subject: [Zope] setRow syntax Q
Using TinyTablePlus for the first time.
So I have: testtable - email* timestamp
I want to overwrite NULL for timestamp in each row.
<dtml-in emailtable> <dtml-call expr="REQUEST.set('tID', ZopeTime().toZone('EST').timeTime())"> <dtml-call "setRow(email=email, ID=tID)"> </dtml-in>
And get: Error Type: NameError Error Value: global name 'setRow' is not defined
..and... <dtml-call "testtable.setRow(email=email, ID=myEID)"> Error Type: AttributeError Error Value: Results instance has no attribute 'setRow'
So how do I rewrite the current row?
ThankU, -Trevor
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Trevor Toenjes -
Wolfram Kerber