[ZODB-Dev] Can I abort part of a transaction setting self._p_changed=0 ?

ender kthangavelu@earthlink.net
Thu, 28 Jun 2001 15:03:40 -0700


On Thursday 28 June 2001 18:14, Shane Hathaway wrote:
>>Steve Spicklemire wrote:
>>
>>The act of modifying a persistent object or setting _p_changed to 1
>>causes cPersistence to register the object with the transaction manager
>>to be written, so by the time you set _p_changed to 0 it's too late.
>>
>>I don't have a good solution for you, so I didn't reply earlier, hoping
>>someone else might.

could you remove the object from the transaction with something like

t = get_transaction()
t._objects.remove(obj)


kapil