[ZODB-Dev] Re: Article on ZODB Programming
Barry A. Warsaw
barry@digicool.com
Mon, 18 Jun 2001 18:31:56 -0400
>>>>> "MP" == Michel Pelletier <michel@digicool.com> writes:
MP> I don't know the why of it, but the function get_transaction
MP> is stuffed into the global namespace by ZODB when it is
MP> imported. I'm cc:ing the zodb-dev list to see if anyone knows
MP> why.
I might be wrong, but I believe Jim figured that this would be such a
common operation in a ZODB-based application, that this little bit of
magic is acceptable. In my somewhat limited experience, I think he
made the right decision, even though I usually cringe from such
things. The alternative would be to have to import a module to get
the function, and that just seems like busywork, especially because
you /know/ you're writing a ZODB app, so you might as well get this
function for free.
-Barry