[ZODB-Dev] 'None' transaction ids?

Chris Withers chrisw@nipltd.com
Wed, 24 Oct 2001 13:04:29 +0100


kapil thangavelu wrote:
> 
> > What generates transaction ids?
> 
> thread.get_ident

And when would that return None? 

> > There's a lot of transactions in this Data.fs that have been generated by
> > me calling get_transaction().begin() and get_transaction.commit() in a
> > python script, could this result in 'None' transaction ids?
> 
> not that i know ;) its more likely that you're not attaching any useful note
> info to the transaction. via (t.note, t.setUser, t.setExtendedInfo)

Indeed, I'm not setting any notes anywhere. Should I? If I should, and that
means I've got these None's all over the place, what would be a safe way to fix
them? Should the storage barf liek this anyway?

cheers,

Chris