Have this DTML form that used to work with 2.6. A folder has a lines property called day1. User enters text in a field and submits. The current value of day1 is read into a variable. The new value is appended and sorted and manageChangeProperties called and all is well. WAS well... now Zope complains that 'tuple has no method append' Did properties change in 2.7 ?? Thanks
On Sep 14, 2004, at 17:43, aschmidt@fredericksburg.com wrote:
Have this DTML form that used to work with 2.6. A folder has a lines property called day1. User enters text in a field and submits. The current value of day1 is read into a variable. The new value is appended and sorted and manageChangeProperties called and all is well.
WAS well... now Zope complains that 'tuple has no method append'
Did properties change in 2.7 ??
Yes. What you get back when you retrieve the property is a tuple instead of a list now. You will have to deal with that in your code. jens --------------- Jens Vagelpohl jens@zetwork.com Software Engineer Zope - done medium rare Zetwork GmbH http://www.zetwork.com/
aschmidt@fredericksburg.com wrote at 2004-9-14 11:43 -0400:
Have this DTML form that used to work with 2.6. A folder has a lines property called day1. User enters text in a field and submits. The current value of day1 is read into a variable. The new value is appended and sorted and manageChangeProperties called and all is well.
WAS well... now Zope complains that 'tuple has no method append'
You have been lucky that it worked before Zope 2.7... Changes like that could disappear non-deterministically!
Did properties change in 2.7 ??
Yes. In order to protect you against non-deterministic behaviour by forcing you to use the official API for property changes (--> "PropertyManager" API, Online Help). -- Dieter
participants (3)
-
aschmidt@fredericksburg.com -
Dieter Maurer -
Jens Vagelpohl