[Zope] persistence problem with python product

Chris Withers chrisw@nipltd.com
Wed, 18 Apr 2001 21:50:36 +0100


>     def setProperty(self,id,title,value):
>         self._properties[id] = {"title":title,"value":value}
          self._p_changed=1
>
>     def setPropertyValue(self,id,value):
>         self._properties[id]['value'] = value
          self._p_changed=1

> now when i change values via the setPropertyValue(method) the new values
get
> lost

You forgot the two lines above.

Also, why don't you just use normal properties/propertysheets?

cheers,

Chris