On Wed, 16 Aug 2000, Bob Pepin wrote:
> attribute of the class. When I append something to that list, it stays
> there at first, but only until I restart Zope. It disappears (==is set

You have to let Zope know that the object has been modified so
it knows to commit it to disk.

x = self.list
self.list = x

will do that.  Hmm.  Actually I suppose that

self.list = self.list

would also work.  (The point is for __setattr__ to get called so
Zope can notice that the object has changed).

There's also a property you can set on self to notify zope of the
modification, but I forget it's name.


Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to