RE: [Zope] Newbie question: updating properties
4 Jan
2000
4 Jan
'00
2:04 p.m.
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.
9589
Age (days ago)
9589
Last active (days ago)
0 comments
1 participants
participants (1)
-
Martijn Pieters