%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyo

�
��4]c@s�ddlZddlmZddlmZddlmZddlmZdefd��YZd	efd
��YZ	defd��YZ
dS(
i����Ni(t
attributes(tutili(texctIdentityMapcBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zdd�Zd�Zd�Zd�Zd�ZRS(cCs+i|_t�|_tj|�|_dS(N(t_dicttsett	_modifiedtweakreftreft_wr(tself((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt__init__s	cCs
|jj�S(N(Rtkeys(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyRscCs
t��dS(N(tNotImplementedError(R
tstate((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pytreplacescCs
t��dS(N(R
(R
R((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pytaddscCs|j|�dS(sUoptional inlined form of add() which can assume item isn't present
        in the mapN(R(R
Rtkey((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt_add_unpresentscCstd��dS(Ns%IdentityMap uses add() to insert data(R
(R
tdict_((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pytupdate$scCstd��dS(Ns(IdentityMap uses remove() to remove data(R
(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pytclear'scCs,|j|_|jr(|jj|�ndS(N(R	t_instance_dicttmodifiedRR(R
R((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt_manage_incoming_state*s	cCs&|`|jr"|jj|�ndS(N(RRRtdiscard(R
R((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt_manage_removed_state0s	cCs|jS(N(R(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt
_dirty_states5scCs
t|j�S(s[return True if any InstanceStates present have been marked
        as 'modified'.

        (tboolR(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pytcheck_modified8scCs
||kS(N((R
R((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pythas_key?scCstd��dS(Ns(IdentityMap uses remove() to remove data(R
(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pytpopitemBscGstd��dS(Ns(IdentityMap uses remove() to remove data(R
(R
Rtargs((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pytpopEscCstd��dS(Ns%IdentityMap uses add() to insert data(R
(R
Rtdefault((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt
setdefaultHscCs
t|j�S(N(tlenR(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt__len__KscCs
t��dS(N(R
(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pytcopyNscCstd��dS(Ns%IdentityMap uses add() to insert data(R
(R
Rtvalue((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt__setitem__QscCstd��dS(Ns(IdentityMap uses remove() to remove data(R
(R
R((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt__delitem__TsN(t__name__t
__module__RRRRRRRRRRRRRR!tNoneR#R%R&R(R)(((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyRs&																	tWeakInstanceDictcBs�eZd�Zd�Zd�Zd�Zd�Zd�Zdd�Z	d�Z
d�Zd	�Ze
jr�d
�Zd�Znd�Zd
�Zd�Zd�Zd�ZRS(cCs8|j|}|j�}|dkr4t|��n|S(N(RtobjR,tKeyError(R
RRto((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt__getitem__Ys

cCsVy3||jkr.|j|}|j�}ntSWntk
rGtSX|dk	SdS(N(RR.tFalseR/R,(R
RRR0((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt__contains__`s

cCsJ|j|jkrBy|j|j|kSWqFtk
r>tSXntSdS(N(RRR/R2(R
R((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pytcontains_statels
cCs~|j|jkr]y|j|j}Wntk
r9q]X||k	rV|j|�q]dSn||j|j<|j|�dS(N(RRR/RR(R
Rtexisting((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyRus
cCs�|j}||jkr�y|j|}Wntk
r<q�X||k	r�|j�}|dk	r�tjdtj|�|jf��q�q�t	Sn||j|<|j
|�tS(NsZCan't attach instance %s; another instance with key %s is already present in this session.(RRR/R.R,tsa_exctInvalidRequestErrortorm_utilt	state_strR2RtTrue(R
RRtexisting_stateR0((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR�s 	
"

cCs||j|<|j|_dS(N(RR	R(R
RR((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR�s
cCs]||jkr|Sy|j|}Wntk
r8|SX|j�}|dkrU|S|SdS(N(RR/R.R,(R
RR"RR0((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pytget�s
cCsX|j�}g}x?|D]7}|j�}|dk	r|j|j|f�qqW|S(N(t
all_statesR.R,tappendR(R
tvaluestresultRR'((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pytitems�s
cCsO|j�}g}x6|D].}|j�}|dk	r|j|�qqW|S(N(R=R.R,R>(R
R?R@RR'((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR?�s
cCst|j��S(N(titerR(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt__iter__�scCst|j��S(N(RBRA(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt	iteritems�scCst|j��S(N(RBR?(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt
itervalues�scCs-tjr|jj�St|jj��SdS(N(Rtpy2kRR?tlist(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR=�s	
cCsQy|j|j}Wntk
r'n&X||krM|jj|jd�ndS(N(RRR/R!R,(R
Rtst((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt
_fast_discard�s
cCs|j|�dS(N(tsafe_discard(R
R((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR�scCss|j|jkroy|j|j}Wntk
r9qoX||kro|jj|jd�|j|�qondS(N(RRR/R!R,R(R
RRH((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyRJ�s
cCsdS(Ni((R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pytprune�sN(R*R+R1R3R4RRRR,R<RAR?RCRRFRDRER=RIRRJRK(((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR-Xs$										
							tStrongInstanceDictcBs�eZdZejr*d�Zd�Znd�Zd�Zd�Z	dd�Zd�Zd�Z
d	�Zd
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�ZRS(s&A 'strong-referencing' version of the identity map.

    .. deprecated 1.1::
        The strong
        reference identity map is legacy.  See the
        recipe at :ref:`session_referencing_behavior` for
        an event-based approach to maintaining strong identity
        references.


    cCs
|jj�S(N(RRE(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyREscCs
|jj�S(N(RRD(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyRDscCs
t|j�S(N(RBR(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyRC	scCs|j|S(N(R(R
R((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR1scCs
||jkS(N(R(R
R((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR3scCs|jj||�S(N(RR<(R
RR"((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR<scCs
|jj�S(N(RR?(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR?scCs
|jj�S(N(RRA(R
((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyRAscCs&g|j�D]}tj|�^q
S(N(R?Rtinstance_state(R
R0((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR=scCs)|j|ko(tj||j�|kS(N(RRRM(R
R((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR4scCs{|j|jkrT|j|j}tj|�}||k	rM|j|�qTdSn|j�|j|j<|j|�dS(N(RRRRMRR.R(R
RR5((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR$scCs�|j|krZtj|j|j�|k	rVtjdtj|�|jf��ntS|j	�|j|j<|j
|�tSdS(NsZCan't attach instance %s; another instance with key %s is already present in this session.(RRRMRR6R7R8R9R2R.RR:(R
R((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR0s
cCs#|j�|j|<|j|_dS(N(R.RR	R(R
RR((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyR?scCsZy|j|j}Wntk
r'n/Xtj|�|krV|jj|jd�ndS(N(RRR/RRMR!R,(R
RR.((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyRIDs
cCs|j|�dS(N(RJ(R
R((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyRPscCsj|j|jkrf|j|j}tj|�}||krf|jj|jd�|j|�qfndS(N(RRRRMR!R,R(R
RR.RH((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyRJSscCs�t|�}g|j�D]}|jr|j�^q}tj�}|j|�|jj�|jj|�t	|�|_|t|�S(s%prune unreferenced, non-dirty states.(
R$R=RR.RtWeakValueDictionaryRRRR(R
t	ref_counttstdirtytkeepers((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyRK[s.

N(R*R+t__doc__RRFRERDRCR1R3R,R<R?RAR=R4RRRRIRRJRK(((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyRL�s&															(RtRRR8RR6tobjectRR-RL(((sJ/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/identity.pyt<module>sH�

Zerion Mini Shell 1.0