HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyc
�
���ec@suddlZddlmZddlmZddlmZdefd��YZdefd	��YZd
�Z	dS(i����Ni(tutili(texctIdentityMapcBs�eZd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zdd�Zd�Zd�Zd�Zd�ZRS(cCs+i|_t�|_tj|�|_dS(N(t_dicttsett	_modifiedtweakreftreft_wr(tself((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt__init__s	cCs
t|_dS(N(t_killedt_add_unpresent(R	((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt_killscCs
|jj�S(N(Rtkeys(R	((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyRscCs
t��dS(N(tNotImplementedError(R	tstate((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pytreplacescCs
t��dS(N(R(R	R((sH/opt/alt/python27/lib/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((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyR!scCstd��dS(Ns%IdentityMap uses add() to insert data(R(R	tdict_((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pytupdate&scCstd��dS(Ns(IdentityMap uses remove() to remove data(R(R	((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pytclear)scCs,|j|_|jr(|jj|�ndS(N(Rt_instance_dicttmodifiedRR(R	R((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt_manage_incoming_state,s	cCs&|`|jr"|jj|�ndS(N(RRRtdiscard(R	R((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt_manage_removed_state2s	cCs|jS(N(R(R	((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt
_dirty_states7scCs
t|j�S(s[return True if any InstanceStates present have been marked
        as 'modified'.

        (tboolR(R	((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pytcheck_modified:scCs
||kS(N((R	R((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pythas_keyAscCstd��dS(Ns(IdentityMap uses remove() to remove data(R(R	((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pytpopitemDscGstd��dS(Ns(IdentityMap uses remove() to remove data(R(R	Rtargs((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pytpopGscCstd��dS(Ns%IdentityMap uses add() to insert data(R(R	Rtdefault((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt
setdefaultJscCs
t|j�S(N(tlenR(R	((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt__len__MscCs
t��dS(N(R(R	((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pytcopyPscCstd��dS(Ns%IdentityMap uses add() to insert data(R(R	Rtvalue((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt__setitem__SscCstd��dS(Ns(IdentityMap uses remove() to remove data(R(R	R((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt__delitem__VsN(t__name__t
__module__R
R
RRRRRRRRRRRR R"tNoneR$R&R'R)R*(((sH/opt/alt/python27/lib/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�ZRS(cCs8|j|}|j�}|dkr4t|��n|S(N(RtobjR-tKeyError(R	RRto((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt__getitem__[s

cCsVy3||jkr.|j|}|j�}ntSWntk
rGtSX|dk	SdS(N(RR/tFalseR0R-(R	RRR1((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt__contains__bs

cCsJ|j|jkrBy|j|j|kSWqFtk
r>tSXntSdS(N(RRR0R3(R	R((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pytcontains_statens
cCs�|j|jkr]y|j|j}Wntk
r9qcX||k	rV|j|�qcdSnd}||j|j<|j|�|S(N(RRR0RR-R(R	Rtexisting((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyRws

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.(RRR0R/R-tsa_exctInvalidRequestErrortorm_utilt	state_strR3RtTrue(R	RRtexisting_stateR1((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyR�s 	
"

cCs||j|<|j|_dS(N(RRR(R	RR((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyR�s
cCs]||jkr|Sy|j|}Wntk
r8|SX|j�}|dkrU|S|SdS(N(RR0R/R-(R	RR#RR1((sH/opt/alt/python27/lib/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(((sH/opt/alt/python27/lib/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@RARR(((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyR@�s
cCst|j��S(N(titerR(R	((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt__iter__�scCst|j��S(N(RCRB(R	((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt	iteritems�scCst|j��S(N(RCR@(R	((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt
itervalues�scCs-tjr|jj�St|jj��SdS(N(Rtpy2kRR@tlist(R	((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyR>�s	
cCsQy|j|j}Wntk
r'n&X||krM|jj|jd�ndS(N(RRR0R"R-(R	Rtst((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt
_fast_discard�s
cCs|j|�dS(N(tsafe_discard(R	R((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyR�scCss|j|jkroy|j|j}Wntk
r9qoX||kro|jj|jd�|j|�qondS(N(RRR0R"R-R(R	RRI((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyRK�s
N(R+R,R2R4R5RRRR-R=RBR@RDRRGRERFR>RJRRK(((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyR.Zs"										
						cCs&tjdtj|�dd��dS(Ns�Object %s cannot be converted to 'persistent' state, as this identity map is no longer valid.  Has the owning Session been closed?tcodetlkrp(R7R8R9R:(RR((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyR�s(
RtRR9RR7tobjectRR.R(((sH/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/orm/identity.pyt<module>sK�