[ZDP] BackTalk to Document Zope Developer's Guide (2.4 edition)/ZODB Persistent Components
webmaster@zope.org
webmaster@zope.org
Fri, 08 Nov 2002 23:05:06 -0500
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZDG/current/Persistence.stx#2-31
---------------
There are two solutions to this problem. First, you can assign a
special flag, '_p_changed'::
def addDepartment(self, department):
self.department.append(department)
self._p_changed = 1
% Anonymous User - Nov. 8, 2002 11:05 pm:
well, these are simple types. i had a (recursive) attribute
self.tree = [..., {'sub': <a subtree> ...} ...]
and sometimes (unreproducable) it didnt update in lieu of self._p_changed=1.
Explain.