Ñò ô†³Kc@sdZddklZddklZdefd„ƒYZdefd„ƒYZdefd „ƒYZd „Z dd gZ d e jowe opdd k lZeeddƒZeƒZeiƒZeideidƒƒeiƒ\ZZeGeGHndS(só Middleware related to transactions and database connections. At this time it is very basic; but will eventually sprout all that two-phase commit goodness that I don't need. .. note:: This is experimental, and will change in the future. iÿÿÿÿ(t HTTPException(t catch_errorstTransactionManagerMiddlewarecBseZd„Zd„ZRS(cCs ||_dS(N(t application(tselfR((s5/usr/lib/python2.6/site-packages/paste/transaction.pyt__init__scCs@tƒ|d<}t|dCst PgQuoteString(tmoduletargstkwargstquotethasattrR(RR R!R"((s5/usr/lib/python2.6/site-packages/paste/transaction.pyR<s     cCs?|ii|i|iŽ}|i|id<|i|id<|S(NR R#(R tconnectR!R"t__dict__R#(RR tconn((s5/usr/lib/python2.6/site-packages/paste/transaction.pyRGsN(RRt__doc__RtNoneR(((s5/usr/lib/python2.6/site-packages/paste/transaction.pyR5s cs‡‡fd†}|S(s Provides a simple mechanism for starting a transaction based on the factory; and for either committing or rolling back the transaction depending on the result. It checks for the response's current status code either through the latest call to start_response; or through a HTTPException's code. If it is a 100, 200, or 300; the transaction is committed; otherwise it is rolled back. cs_ˆ|ƒ‰ˆ|ds  !