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 <[EMAIL PROTECTED]> 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/
_______________________________________________
Zope-Dev maillist - Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )