[Zope] Newbie question: updating properties

Martijn Pieters mj@digicool.com
Tue, 4 Jan 2000 09:04:39 -0500


> I have a property x type int with value 1
> 
> The following piece of dtml code:
> 
> 	<dtml-var x>,
> 	<dtml-call "manage_changeProperties(x=2)">
> 	<dtml-var x>,
> 	<dtml-var "this().getProperty('x')">
> 
> prints
> 
> 	1,1,2
> 
> I wonder why it doesn't print 1,2,2
> Why is the new property value not reflected in the dtml-var?
> 
> anyone any idea's?

Hmm.. IIRC, dtml-var caches retrieved named objects. The first time it
actually looks up x, the next invocation on a page it will reuse that
value. This only within one call to a page, the next time the page is
called, x is retrieved once again.