<div dir="ltr">Use persistent.dict.PersistentDict and persistent.list.PersistentList instead of dict and list. These have hooks to dirty the object whenever anything changes inside them.</div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Mon, Dec 9, 2013 at 12:19 PM, Tamer Higazi <span dir="ltr"><<a href="mailto:tameritoke2@arcor.de" target="_blank">tameritoke2@arcor.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi people!<br>
Inside the ZODB Tree I have a dictionary!<br>
<br>
root = {<br>
'person:<br>
  {<br>
    'amanda':<br>
      [10,20,30]<br>
    }<br>
}<br>
<br>
if I run:<br>
<br>
root['person']['amanda'].<u></u>append(1000)<br>
<br>
and run:<br>
<br>
transaction.commit()<br>
close the db, start a new python shell nothing has changed so far.<br>
<br>
Why is that ?!<br>
<br>
<br>
Is there a way, to change the ZODB keys subcontent without to copy the entire entry in the memory ?!<br>
<br>
<br>
<br>
For a short reply I would thank you.<br>
<br>
<br>
<br>
Tamer<br>
______________________________<u></u>_________________<br>
For more information about ZODB, see <a href="http://zodb.org/" target="_blank">http://zodb.org/</a><br>
<br>
ZODB-Dev mailing list  -  <a href="mailto:ZODB-Dev@zope.org" target="_blank">ZODB-Dev@zope.org</a><br>
<a href="https://mail.zope.org/mailman/listinfo/zodb-dev" target="_blank">https://mail.zope.org/mailman/<u></u>listinfo/zodb-dev</a><br>
</blockquote></div><br></div>