[Zope] Problem with BTreefolder, dictionaries and refresh/restart

Jens Vagelpohl jens@zope.com
Mon, 8 Jul 2002 13:38:43 -0400


this question has been answered quite often, for example here::

http://groups.yahoo.com/group/zope/message/92545

jens


On Monday, July 8, 2002, at 02:34 , Sven Rudolph wrote:

> Hello all,
>
> I have a strange Problem with a little python product I have written. It 
> inherits from BTreeFolder and has an additional Attribute 'test' which is 
> of the type dictionary.
>
> When I create a new instance of this Product, I can add a new key:value 
> pair to the dictionary test.
> -> {'a':'1'}
> If I restart the server now or refresh my product, this dictionary entry 
> still exists.
>
> But if I add a new key:value pair to test (or two, or three) and restart 
> the server or refresh my product, all new entrys are gone. Only the first 
> entry {'a':'1'} persits.
> If I try to change the first entry and restart or refresh, the changes to 
> the first entry are gone too.
>
> 'test' seems to be static after the initial write access.
> Can anybody help me?
>
> Thanks in advance
>
> Sven Rudolph
>
> --
> Sven Rudolph, Programmierer
> GermanMedicalServices.de GmbH
> Unter den Eichen 5, 65195 Wiesbaden
> Tel.: 06 11 / 97 46 25 2
>