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 <tamerito...@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@zope.org
> https://mail.zope.org/mailman/listinfo/zodb-dev
>
_______________________________________________
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to