| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python2.7/dist-packages/twisted/enterprise/ |
Upload File : |
ó
[³XMc @ sü d Z d d l Z d d l m Z d d l m Z m Z d d l m Z d d l m
Z
d e f d „ ƒ YZ d e
f d
„ ƒ YZ d f d „ ƒ YZ d
f d „ ƒ YZ e
d d d d ƒ Z e e ƒ Z d „ Z d „ Z e e ƒ Z d d
d g Z d S( sg
An asynchronous mapping to U{DB-API 2.0<http://www.python.org/topics/database/DatabaseAPI-2.0.html>}.
iÿÿÿÿN( t threads( t reflectt log( t
deprecated( t Versiont ConnectionLostc B s e Z d Z RS( sb
This exception means that a db connection has been lost. Client code may
try again.
( t __name__t
__module__t __doc__( ( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyR s t
Connectionc B s; e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s
A wrapper for a DB-API connection instance.
The wrapper passes almost everything to the wrapped connection and so has
the same API. However, the Connection knows about its pool and also
handle reconnecting should when the real connection dies.
c C s | | _ d | _ | j ƒ d S( N( t _poolt Nonet _connectiont reconnect( t selft pool( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyt __init__# s c C s d S( N( ( R ( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyt close( s c C sÁ | j j s | j j ƒ d SyN | j j ƒ | j j ƒ } | j | j j ƒ | j ƒ | j j ƒ d SWn t j
d d ƒ n X| j j | j ƒ | j j
r´ t j d ƒ n t ƒ ‚ d S( Ns Rollback faileds Connection lost.( R
R
R t rollbackt cursort executet good_sqlR t commitR t errR t
disconnectt noisyt msgR ( R t curs( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyR 2 s
c C s; | j d k r% | j j | j ƒ n | j j ƒ | _ d S( N( R R R
R t connect( R ( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyR
H s c C s t | j | ƒ S( N( t getattrR ( R t name( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyt __getattr__M s ( R R R R R R R
R ( ( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyR s
t Transactionc B sA e Z d Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s A lightweight wrapper for a DB-API 'cursor' object.
Relays attribute access to the DB cursor. That is, you can call
execute(), fetchall(), etc., and they will be called on the
underlying DB-API cursor object. Attributes will also be
retrieved from there.
c C s | | _ | | _ | j ƒ d S( N( R
R t reopen( R R t
connection( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyR [ s c C s | j } d | _ | j ƒ d S( N( t _cursorR R ( R R# ( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyR ` s c C sž | j d k r | j ƒ n y | j j ƒ | _ d SWn) | j j sN ‚ qb t j d d ƒ n X| j j r~ t j
d ƒ n | j ƒ | j j ƒ | _ d S( Ns Cursor creation faileds Connection lost, reconnecting( R# R R R R R
R
R R R R ( R ( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyR! e s
c C s | j j ƒ d | _ d S( N( R R
R R# ( R ( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyR
x s
c C s t | j | ƒ S( N( R R# ( R R ( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyR | s N(
R R R R R# R R R! R
R ( ( ( s= /usr/lib/python2.7/dist-packages/twisted/enterprise/adbapi.pyR Q s t ConnectionPoolc B sþ e Z d Z d j ƒ Z e Z d Z d Z d Z
d Z e Z d Z
e Z e Z e Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z d
„ Z d „ Z d „ Z d
„ Z d „ Z d „ Z d „ Z d „ Z d „ Z! d „ Z"