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()
....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.

For more information about ZODB, see the ZODB Wiki:

ZODB-Dev mailing list  -  ZODB-Dev@zope.org

Reply via email to