Well then what do you suggest as the best way to do this? This is what I came up with and seems to work: --day1 is the lines property-- --textfield is the field from the form-- --jobfair200310 is the folder-- <dtml-if Submit> <dtml-if textfield> <dtml-call "REQUEST.set('day1',day1)"> <dtml-call "day1.append(textfield)"> <dtml-call "day1.sort()"> <dtml-call expr="jobfair200310.manage_changeProperties({'day1' : day1})"> </dtml-if> </dtml-if> Thanks --Allen Dieter Maurer wrote:
Chris Withers wrote at 2003-9-17 13:00 +0100:
Allen wrote:
Using DTML but Python equivalent would also be greatly appreciated. Jsut need a kick in the right direction.
object.your_property.append(your_new_value)
*DON'T*!!!!!!!!!!!!!!!
*NEVER* modify properties with something else than the official API!
Following Chris' suggestion would seem to work but when your object is flushed from the ZODB cache, your chance it high that the modification will disappear again.
Reason: the persistent object did not recognize that one of its attributes has been modified. Therefore, it does not make the change persistent.
Dieter