-----Original Message----- From: Victor Ng <v2ng@home.com> To: zope@zope.org <zope@zope.org> Date: Tuesday, August 31, 1999 10:28 PM Subject: [Zope] Setting object properties
I think this is a general problem I'm having with Zope - but anyway...
I'm using the ZClasses Tutorial with the CDClass and I'm having problems trying to set the properties of the object. The result set gives me the 'old' artist value that I used when I first added the myCD object.
<P>CD Info:</P> <dtml-call "myCD.manage_changeProperties({'artist':'Victor Ng'})"> <dtml-with myCD> <p>Title: <dtml-var title></P> <P>Artist: <dtml-var artist></P> <P>Description: <dtml-var description html_quote newline_to_br></P> </dtml-with>
This is normal. The new property value isn't really set until the whole transaction has completed, which is after the DTML Method is done.
More generally, is there a facility in Zope so that I can create variables in the DTML document that are _not_ properties of the DTML document? I just want to create a temporary local variable that I can assign things to, and then toss out.
There are two ways... <dtml-call "REQUEST.set('variable', 'value')"> or <dtml-let variable=value> ...some commands... </dtml-let> Kevin