[Zope] ZODB drops _v_ attributes.
Toby Dickenson
tdickenson@geminidataloggers.com
Tue, 8 Apr 2003 13:48:58 +0100
On Tuesday 08 April 2003 1:27 pm, ZOPE Developer wrote:
> Hi.
>
> I use the standalone ZODB.
>
> When I create persistent objects containing _v_ (volatile
> attributes), and access them at an extremely high
> rate(reading and using), they sometimes lose their _v_
> attibutes.
Thats what volatile means!
> Can somebody tell me what I need to do the avoid this?
To stop the attribute value disappearing? Make it non-volatile.
To detect the situation and avoid the AttributeError? Use hasattr, or set a
shadow class attribute with a null value.
--
Toby Dickenson
http://www.geminidataloggers.com/people/tdickenson