[ZODB-Dev] modifying tree under root and save ?!

Claudiu csaftoiu at gmail.com
Mon Dec 9 18:21:30 CET 2013


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.


On Mon, Dec 9, 2013 at 12:19 PM, Tamer Higazi <tameritoke2 at arcor.de> wrote:

> Hi people!
> Inside the ZODB Tree I have a dictionary!
>
> root = {
> 'person:
>   {
>     'amanda':
>       [10,20,30]
>     }
> }
>
> if I run:
>
> root['person']['amanda'].append(1000)
>
> and run:
>
> transaction.commit()
> close the db, start a new python shell nothing has changed so far.
>
> Why is that ?!
>
>
> Is there a way, to change the ZODB keys subcontent without to copy the
> entire entry in the memory ?!
>
>
>
> For a short reply I would thank you.
>
>
>
> Tamer
> _______________________________________________
> For more information about ZODB, see http://zodb.org/
>
> ZODB-Dev mailing list  -  ZODB-Dev at zope.org
> https://mail.zope.org/mailman/listinfo/zodb-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.zope.org/pipermail/zodb-dev/attachments/20131209/096de2ca/attachment.html>


More information about the ZODB-Dev mailing list