ZODB: don't like self._p_changed

Thomas Guettler zopestoller at thomas-guettler.de
Thu Jan 9 05:33:34 EST 2003


Max M schrieb:
> Thomas Guettler wrote:
> 
>> Hi!
>>
>> I like ZODB very much. With it I don't need to
>> squeeze my application into database tables.
>>
>> Unfortunately you need to set self._p_changed=1
>> if you change a list of the object.
>>
>> Example:
>> self.my_list.append("foo")
>> self._p_changed=1 # This is needed

[cut]

>> Will this disappear in the future?
> 
> Probably not. How should an object know if a mutable subobject has been 
> changed?

The method "append" could set the flag.

  thomas






More information about the Python-list mailing list