403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python2.6/site-packages/paste/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python2.6/site-packages/paste//transaction.pyo
Ñò
•ÊIc@sdZddklZddklZdefd„ƒYZdefd„ƒYZdefd	„ƒYZd
„Z	ddgZ
dejowe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(tapplication(tselfR((s5/usr/lib/python2.6/site-packages/paste/transaction.pyt__init__scCs@tƒ|d<}t|d<t|i||d|id|iƒS(Nspaste.transaction_managerspaste.throw_errorsterror_callbacktok_callback(tManagertTrueRRterrortfinish(Rtenvirontstart_responsetmanager((s5/usr/lib/python2.6/site-packages/paste/transaction.pyt__call__s

	(t__name__t
__module__RR(((s5/usr/lib/python2.6/site-packages/paste/transaction.pyRs	RcBs,eZd„Zd„Zd„Zd„ZRS(cCst|_g|_dS(N(tFalsetabortedttransactions(R((s5/usr/lib/python2.6/site-packages/paste/transaction.pyR"s	cCs
t|_dS(N(R	R(R((s5/usr/lib/python2.6/site-packages/paste/transaction.pytabort&scCst|_|iƒdS(N(R	RR(Rtexc_info((s5/usr/lib/python2.6/site-packages/paste/transaction.pyR
)s	cCs:x3|iD](}|io|iƒq
|iƒq
WdS(N(RRtrollbacktcommit(Rttrans((s5/usr/lib/python2.6/site-packages/paste/transaction.pyR-s


(RRRRR
R(((s5/usr/lib/python2.6/site-packages/paste/transaction.pyR s			tConnectionFactorycBs#eZdZd„Zdd„ZRS(s
    Provides a callable interface for connecting to ADBAPI databases in
    a WSGI style (using the environment).  More advanced connection
    factories might use the REMOTE_USER and/or other environment
    variables to make the connection returned depend upon the request.
    cOsQ||_||_||_d„|_t|idƒo|ii|_ndS(NcSsd|iddƒS(s'%s't's''(treplace(ts((s5/usr/lib/python2.6/site-packages/paste/transaction.pyt<lambda>Cst
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_ˆ|ƒ‰ˆ|d<dg‰d‡‡fd†}d‡‡fd†}tˆ||||ƒS(Nspaste.connectioniôcs|o0t|dtƒoˆi|diƒq7nˆiƒdjoˆiƒnyˆiƒWndSXˆiƒdS(Nii(t
isinstanceRtappendtcodetpopRRtclose(R(R't
should_commit(s5/usr/lib/python2.6/site-packages/paste/transaction.pyt	finalizerZscs0ˆit|idƒdƒƒˆ|||ƒS(Nt i(R+tinttsplit(tstatustheadersR(R
R/(s5/usr/lib/python2.6/site-packages/paste/transaction.pytbasictrans_start_responsegs (R)R(RR
R0R6(Rtfactory(R
R'R/s5/usr/lib/python2.6/site-packages/paste/transaction.pytbasic_transactionVs
	
((RR7R8((RR7s5/usr/lib/python2.6/site-packages/paste/transaction.pytBasicTransactionHandlerMs	R9t__main__(tPgSQLtdatabasettestingsSELECT now(), %ss	B'n\'glesN(R(tpaste.httpexceptionsRtwsgilibRtobjectRRRR9t__all__RRtpyPgSQLR;R7R'tcursortcurrtexecuteR#tfetchonettimetbing(((s5/usr/lib/python2.6/site-packages/paste/transaction.pyt<module>s
	!	

Youez - 2016 - github.com/yon3zu
LinuXploit