[ZODB-Dev] Re: [Zope] DateTime mess

David Binger dbinger at mems-exchange.org
Thu Dec 1 11:53:48 EST 2005


On Dec 1, 2005, at 11:39 AM, Chris Withers wrote:
>
> Sorry, my question was that if DateTime's were persistent, would  
> the following code result in a complete pickle for 'a' being  
> written on the second transaction commit?
>
> a.someTime = DateTime()
> get_transaction().commit()
> ....wait/do stuff...
> a.someTime = DateTime()
> ....have we just committed a pickle containing all of 'a'?...

Not quite.  But if you call commit() again, you do indeed
save a new pickle of a.

>
> Does mixing persistence into DateTime make a difference here?

Not with respect to whether or not a second commit
contains a pickle of a.



More information about the ZODB-Dev mailing list