[ZODB-Dev] Python properties on Persistent objects
jim at zope.com
Thu Dec 17 07:21:40 EST 2009
On Wed, Dec 16, 2009 at 7:12 PM, Mikko Ohtamaa <mikko at redinnovation.com> wrote:
> I need to have little clarification should properties work on
> Persistent objects.
Properties work with persistent objects with one limitation that I'm aware of.
The __setattribute__ method used by the persistent base class assumes
that any attribute assignment modifies the object's persistent state.
that doesn't modify state or that modifies volatile state will fool
one could override __setattribute__ to handle such properties, but doing so
would require great care. I don't recommend it.
More information about the ZODB-Dev