[Zope] persistence problem with python product
   
    zope-mailinglist
     
    zope-mailinglist <zope-mailinglist@mopa.at>
       
    Wed, 18 Apr 2001 23:00:48 +0200
    
    
  
wow  - very fast response !!
it works now - thanks a lot
i couldnt find a documentation for the propertysheets stuff
(see  Thread:"[Zope] Propertysheets in python products") from today)
and after reading the sourcecode i thought it would be faster if i do it by
myself
maybe i'll try the other way sometime when i'm more experienced with zope
this is my first "python only" product :)
thx
----- Original Message -----
From: "Chris Withers" <chrisw@nipltd.com>
To: "zope-mailinglist" <zope-mailinglist@mopa.at>; <zope@zope.org>
Sent: Wednesday, April 18, 2001 10:50 PM
Subject: Re: [Zope] persistence problem with python product
> >     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
>