[Zope] dict
Dieter Maurer
dieter at handshake.de
Tue Aug 31 17:37:20 EDT 2004
Vahur Rebas wrote at 2004-8-30 18:57 +0300:
>I was doing some dict modifing like testvar =
>{'test1':{'test2':'test2value'}}
>so, everything was nice until I hit my browsers refresh button as fast
>as I could and my little method which did some
>if not testvar.has_key('test1')
>wrote my default values to my testvar
>tried setting self._p_changed = 1
>but after some time(usually sooner) my values disapear and after zope
>restart they even don't exist anymore :(
>Tried PersistentMapping, that also didn't help much :(
>
>any suggestions?
Read the ZODB3 documentation.
Try to understand how ZODB persistence works.
--
Dieter
More information about the Zope
mailing list