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.

_______________________________________________
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to