Re: [Zope-dev] BTrees and Persistance
That is of course true, I only change the set and would like to save the information. Trying T[1]._p_changed = True gives an error: AttributeError: 'set' object has no attribute '_p_changed' so the only way to do it is to set _p_changed=True for the Tree. Does that mean that the entire Tree object is rewritten to file? Yair On Jun 1, 2005, at 11:13, Lennart Regebro wrote:
On 6/1/05, Yair Benita <y.benita@wanadoo.nl> wrote:
# I would really really like this to work T[1].add(6) T._p_changed = True get_transaction().commit()
# but it doesn't.
Well, the thing you changed is the set, not the BTree... although I would have thought is both sets and btrees handled that automatically... -- Lennart Regebro, Nuxeo http://www.nuxeo.com/ CPS Content Management http://www.cps-project.org/
participants (1)
-
Yair Benita