/opt/cloudlinux/venv/lib/python3.11/site-packages/sqlalchemy/orm/__pycache__
NameSizeModeActions
attributes.cpython-311.pyc813680644editdlrm
base.cpython-311.pyc182890644editdlrm
collections.cpython-311.pyc745770644editdlrm
dependency.cpython-311.pyc439710644editdlrm
deprecated_interfaces.cpython-311.pyc231610644editdlrm
descriptor_props.cpython-311.pyc423920644editdlrm
dynamic.cpython-311.pyc209430644editdlrm
evaluator.cpython-311.pyc89160644editdlrm
events.cpython-311.pyc1172030644editdlrm
exc.cpython-311.pyc101560644editdlrm
identity.cpython-311.pyc179340644editdlrm
instrumentation.cpython-311.pyc262120644editdlrm
interfaces.cpython-311.pyc314500644editdlrm
loading.cpython-311.pyc344410644editdlrm
mapper.cpython-311.pyc1371230644editdlrm
path_registry.cpython-311.pyc207410644editdlrm
persistence.cpython-311.pyc713850644editdlrm
properties.cpython-311.pyc168780644editdlrm
query.cpython-311.pyc1905890644editdlrm
relationships.cpython-311.pyc1440070644editdlrm
scoping.cpython-311.pyc87380644editdlrm
session.cpython-311.pyc1463200644editdlrm
state.cpython-311.pyc400190644editdlrm
strategies.cpython-311.pyc980710644editdlrm
strategy_options.cpython-311.pyc664690644editdlrm
sync.cpython-311.pyc70290644editdlrm
unitofwork.cpython-311.pyc342400644editdlrm
util.cpython-311.pyc545720644editdlrm
__init__.cpython-311.pyc124930644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/sqlalchemy/orm/__pycache__/state.cpython-311.pyc (40019B)
§ ô¸‡øl¡bãó>—dZddlZddlmZddlmZddlmZddlmZddlmZdd lm Z dd lm Z dd lm Z dd lm Z dd lm Z ddlmZddlmZddlmZddlmZddlmZejGd„dej¦«¦«ZGd„de¦«ZGd„de¦«ZdS)zŸDefines instrumentation of instances. This module is usually not directly visible to user applications, but defines a large part of the ORM's interactivity. éNé)Úbase)Úexc)Ú interfaces)Ú ATTR_WAS_SET)ÚINIT_OK)Ú NEVER_SET)ÚNO_VALUE)ÚPASSIVE_NO_INITIALIZE)ÚPASSIVE_NO_RESULT)Ú PASSIVE_OFF)ÚSQL_OK)Ú PathRegistryé)Ú inspection)Úutilcó�—eZdZdZdZdZdZejZ e j Z dZ dZdZdZdZdZdZdZdZdZdZ d„ZdZ ejd„¦«Zed„¦«Zed „¦«Zed „¦«Zed „¦«Z ed „¦«Z!ed „¦«Z"eej#d¦«d„¦«¦«Z$d„Z%eej#d¦«d„¦«¦«Z&ed„¦«Z'ed„¦«Z(ed„¦«Z)ejd„¦«Z*ejd„¦«Z+ejd„¦«Z,ed„¦«Z-e.d5d„¦«Z/d6d„Z0d„Z1d„Z2d„Z3ed„¦«Z4d„Z5d „Z6d!„Z7d"„Z8d#„Z9d$„Z:d%„Z;d&„Zd5d)„Z?d*„Z@ed+„¦«ZAd,„ZBed-„¦«ZCed.„¦«ZDed/„¦«ZEd0„ZF d7d1„ZGd2„ZHd6d3„ZIe.d6d4„¦«ZJdS)8Ú InstanceStateaŒtracks state information at the instance level. The :class:`.InstanceState` is a key object used by the SQLAlchemy ORM in order to track the state of an object; it is created the moment an object is instantiated, typically as a result of :term:`instrumentation` which SQLAlchemy applies to the ``__init__()`` method of the class. :class:`.InstanceState` is also a semi-public object, available for runtime inspection as to the state of a mapped instance, including information such as its current status within a particular :class:`.Session` and details about data on individual attributes. The public API in order to acquire a :class:`.InstanceState` object is to use the :func:`_sa.inspect` system:: >>> from sqlalchemy import inspect >>> insp = inspect(some_mapped_object) .. seealso:: :ref:`core_inspection_toplevel` NFT©cóž—|j|_||_tj||j¦«|_i|_t¦«|_ dS©N) Ú __class__Úclass_ÚmanagerÚweakrefÚrefÚ_cleanupÚobjÚcommitted_stateÚsetÚexpired_attributes)Úselfrrs úh/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib64/python3.11/site-packages/sqlalchemy/orm/state.pyÚ__init__zInstanceState.__init__YsA€Ø”mˆŒ ؈Œ Ý”;˜s D¤MÑ2Ô2ˆŒØ!ˆÔÝ"%¡%¤%ˆÔÐÐócóh‡—tjtˆfd„‰jD¦«¦«¦«S)aaReturn a namespace representing each attribute on the mapped object, including its current value and history. The returned object is an instance of :class:`.AttributeState`. This object allows inspection of the current data within an attribute as well as attribute history since the last flush. c3ó<•K—|]}|t‰|¦«fV—ŒdSr)ÚAttributeState)Ú.0Úkeyr"s €r#ú z&InstanceState.attrs..us2øèè€ÐJÐJ°c�#•~ d¨CÑ0Ô0Ð1ÐJÐJÐJÐJÐJÐJr%)rÚImmutablePropertiesÚdictr©r"s`r#ÚattrszInstanceState.attrshs<ø€õÔ'Ý ÐJÐJÐJÐJ¸T¼\ÐJÑJÔJÑ JÔ Jñ ô ð r%có$—|jduo|j S)z}Return ``True`` if the object is :term:`transient`. .. seealso:: :ref:`session_object_states` N©r*Ú _attachedr.s r#Ú transientzInstanceState.transientxs€ðŒx˜4ÐÐ6¨¬Ð$6Ð6r%có"—|jduo|jS)z|Return ``True`` if the object is :term:`pending`. .. seealso:: :ref:`session_object_states` Nr1r.s r#ÚpendingzInstanceState.pendingƒs€ðŒx˜4ÐÐ2 D¤NÐ2r%có0—|jduo |jo|jS)aðReturn ``True`` if the object is :term:`deleted`. An object that is in the deleted state is guaranteed to not be within the :attr:`.Session.identity_map` of its parent :class:`.Session`; however if the session's transaction is rolled back, the object will be restored to the persistent state and the identity map. .. note:: The :attr:`.InstanceState.deleted` attribute refers to a specific state of the object that occurs between the "persistent" and "detached" states; once the object is :term:`detached`, the :attr:`.InstanceState.deleted` attribute **no longer returns True**; in order to detect that a state was deleted, regardless of whether or not the object is associated with a :class:`.Session`, use the :attr:`.InstanceState.was_deleted` accessor. .. versionadded: 1.1 .. seealso:: :ref:`session_object_states` N©r*r2Ú_deletedr.s r#ÚdeletedzInstanceState.deleted�s€ð8Œx˜tÐ#ÐH¨¬ÐH¸4¼=ÐHr%có—|jS)a¶Return True if this object is or was previously in the "deleted" state and has not been reverted to persistent. This flag returns True once the object was deleted in flush. When the object is expunged from the session either explicitly or via transaction commit and enters the "detached" state, this flag will continue to report True. .. versionadded:: 1.1 - added a local method form of :func:`.orm.util.was_deleted`. .. seealso:: :attr:`.InstanceState.deleted` - refers to the "deleted" state :func:`.orm.util.was_deleted` - standalone function :ref:`session_object_states` )r8r.s r#Ú was_deletedzInstanceState.was_deleted­s €ð,Œ}Ðr%có2—|jduo|jo|j S)a{Return ``True`` if the object is :term:`persistent`. An object that is in the persistent state is guaranteed to be within the :attr:`.Session.identity_map` of its parent :class:`.Session`. .. versionchanged:: 1.1 The :attr:`.InstanceState.persistent` accessor no longer returns True for an object that was "deleted" within a flush; use the :attr:`.InstanceState.deleted` accessor to detect this state. This allows the "persistent" state to guarantee membership in the identity map. .. seealso:: :ref:`session_object_states` Nr7r.s r#Ú persistentzInstanceState.persistentÅs"€ð&Œx˜tÐ#ÐL¨¬ÐL¸t¼}Ð;LÐLr%có$—|jduo|j S)z|Return ``True`` if the object is :term:`detached`. .. seealso:: :ref:`session_object_states` Nr1r.s r#ÚdetachedzInstanceState.detachedÚs€ðŒx˜tÐ#Ð:¨D¬NÐ(:Ð:r%zsqlalchemy.orm.sessioncó0—|jduo |j|jvSr)Ú session_idÚ _sessions©r"Ú sessionlibs r#r2zInstanceState._attachedås%€ð ŒO 4Ð 'ð 8Ø” :Ô#7Ð7ð r%cól—||jvr*t|j¦«|_t|j|<dSdS)z|Track the last known value of a particular key after expiration operations. .. versionadded:: 1.3 N)Ú_last_known_valuesr-r ©r"r*s r#Ú_track_last_known_valuez%InstanceState._track_last_known_valueís@€ð �dÔ-Ð -Ð -Ý&*¨4Ô+BÑ&CÔ&CˆDÔ #Ý+3ˆDÔ # CÑ (Ð (Ð (ð .Ð -r%có,—| |¦«S)aReturn the owning :class:`.Session` for this instance, or ``None`` if none available. Note that the result here can in some cases be *different* from that of ``obj in session``; an object that's been deleted will report as not ``in session``, however if the transaction is still in progress, this attribute will still refer to that session. Only when the transaction is completed does the object become fully detached under normal circumstances. )Ú_state_sessionrCs r#ÚsessionzInstanceState.sessionùs€ð×(Ò(¨Ñ.Ô.Ð.r%có*—| ¦«S)zMReturn the mapped object represented by this :class:`.InstanceState`.)rr.s r#ÚobjectzInstanceState.object s€ð�xŠx‰zŒzÐr%có.—|j€dS|jdS)aìReturn the mapped identity of the mapped object. This is the primary key identity as persisted by the ORM which can always be passed directly to :meth:`_query.Query.get`. Returns ``None`` if the object has no primary key identity. .. note:: An object which is :term:`transient` or :term:`pending` does **not** have a mapped identity until it is flushed, even if its attributes include primary key values. Nr©r*r.s r#ÚidentityzInstanceState.identitys€ð Œ8Ð Ø�4à”8˜A”;Ð r%có—|jS)zõReturn the identity key for the mapped object. This is the key used to locate the object within the :attr:`.Session.identity_map` mapping. It contains the identity as returned by :attr:`.identity` within it. rOr.s r#Ú identity_keyzInstanceState.identity_key#s €ðŒxˆr%có—iSrrr.s r#ÚparentszInstanceState.parents1ó€àˆ r%có—iSrrr.s r#Ú_pending_mutationsz InstanceState._pending_mutations5rUr%có—|jjS)zs€õ�D”H‰~Œ~Ðr%cód—|jjpd}|jjpd}|jjpd}|jjpd}|D]t}|j} |jdu} | o| } d|_|r |jr|`| r |r|� |||¦«n0|� |||¦«n!| r|� |||¦«n| r|� |||¦«d|_ŒudSr) ÚdispatchÚpersistent_to_detachedÚdeleted_to_detachedÚpending_to_transientÚpersistent_to_transientr8r*rAÚ _strong_obj) r"ÚstatesrKÚ to_transientr_r`rarbÚstater9r5r=s r#Ú_detach_stateszInstanceState._detach_statesHs<€ð Ô Ô 3Ð ;°tð ð&Ô.ÔBÐJÀdÐØ&Ô/ÔDÐLÈÐà Ô Ô 4Ð <¸ð ðð %ð %ˆEØ”nˆGØ”i 4Ð'ˆGØ$˜Ð4¨W¨ˆJà#ˆEÔ àð  ¤ ð Ø�IØð 5Øð;Ø.Ð:Ø/Ð/°¸Ñ?Ô?Ð?øØ+Ð7Ø*Ð*¨7°EÑ:Ô:Ð:øØð 5Ð0Ð<Ø#Ð# G¨UÑ3Ô3Ð3Ð3Øð 5Ð1Ð=Ø$Ð$ W¨eÑ4Ô4Ð4à $ˆEÔ Ð ð) %ð %r%cób—|rt |g|¦«dSdx|_|_dSr)rrgrArc)r"rKs r#Ú_detachzInstanceState._detachis=€Ø ð 6Ý × (Ò (¨$¨°Ñ 9Ô 9Ð 9Ð 9Ð 9à15Ð 5ˆDŒO˜dÔ.Ð.Ð.r%có2—| ¦«|`dSr)rirr.s r#Ú_disposezInstanceState._disposeos€Ø � Š ‰ŒˆØ ˆHˆHˆHr%có’—t€dS| ¦«}|�| |¦«|`dx|_|_|`dS)zäWeakref callback cleanup. This callable cleans out the state when it is being garbage collected. this _cleanup **assumes** that there are no strong refs to us! Will not work otherwise! N)r-Ú_instance_dictÚ _fast_discardrArcr)r"rÚ instance_dicts r#rzInstanceState._cleanupssY€õ ˆ<Ø ˆFà×+Ò+Ñ-Ô-ˆ Ø Ð $Ø × 'Ò '¨Ñ -Ô -Ð -ØÐ#ð.2Ð1ˆŒ˜$Ô*Ø ˆHˆHˆHr%có—dSrrr.s r#rzInstanceState.obj‘ó€Øˆtr%cóZ—| ¦«}|�tj|¦«SiS)aReturn the instance dict used by the object. Under normal circumstances, this is always synonymous with the ``__dict__`` attribute of the mapped object, unless an alternative instrumentation system has been configured. In the case that the actual object has been garbage collected, this accessor returns a blank dictionary. )rrro)r"Úos r#r-zInstanceState.dict”s,€ð �HŠH‰JŒJˆØ ˆ=ÝÔ% aÑ(Ô(Ð (àˆIr%cóJ—|d|d|dd…}}}|j}|j |||¦« |j|dd…i|¤ŽS#t j¦«5|j |||¦«ddd¦«YdS#1swxYwYYdSxYw)Nrrr)rr^ÚinitÚ original_initrÚ safe_reraiseÚ init_failure)ÚmixedÚkwargsr"ÚinstanceÚargsrs r#Ú_initialize_instancez"InstanceState._initialize_instance§s€Ø$ Qœx¨¨q¬°5¸¸¸´9˜ˆhˆØ”,ˆàÔ×Ò˜d D¨&Ñ1Ô1Ð1ð BØ(�7Ô(¨%°°°¬)Ð>°vÐ>Ð>Ð >øð BÝÔ"Ñ$Ô$ð Bð BØÔ ×-Ò-¨d°D¸&ÑAÔAÐAð Bð Bð Bñ Bô Bð Bð Bð Bð Bð Bð Bð Bð Bøøøð Bð Bð Bð Bð Bð Bð Bøøøs/¿AÁB"Á)B B"ÂB ÂB"ÂB ÂB"cóZ—|j|j ||j|¦«Sr)rÚimplÚ get_historyr-)r"r*Úpassives r#r€zInstanceState.get_history³s&€ØŒ|˜CÔ Ô%×1Ò1°$¸¼ À7ÑKÔKÐKr%có&—|j|jSr)rrrGs r#Úget_implzInstanceState.get_impl¶s€ØŒ|˜CÔ Ô%Ð%r%cóZ—||jvrt¦«|j|<|j|Sr)rWÚPendingCollectionrGs r#Ú_get_pending_mutationz#InstanceState._get_pending_mutation¹s1€Ø �dÔ-Ð -Ð -Ý+<Ñ+>Ô+>ˆDÔ # CÑ (ØÔ& sÔ+Ð+r%cóø‡—d‰ ¦«i}| ˆfd„dD¦«¦«‰jr‰j ¦«|d<‰j ‰|¦«|d<|S)Nr{c3óH•K—|]}|‰jv¯ |‰j|fV—ŒdSr)Ú__dict__)r)Úkr"s €r#r+z-InstanceState.__getstate__..ÀsLøèè€ð ð àð�D”MÐ!Ð!ð�” ˜aÔ Ð !ð"Ð!Ð!Ð!ð ð r%) rrWÚmodifiedÚexpiredÚ callablesr*rTÚ load_optionsrr!ÚinfoÚ load_pathr)rÚupdater�Ú serializerÚ _serialize)r"Ú state_dicts` r#Ú __getstate__zInstanceState.__getstate__¾sœø€Ø  $§(¢(¡*¤*Ð-ˆ Ø×Òð ð ð ð ð ð ñ ô ñ ô ð ð" Œ>ð AØ&*¤n×&>Ò&>Ñ&@Ô&@ˆJ�{Ñ #à $¤ × 7Ò 7¸¸jÑ IÔ Iˆ �9ÑàÐr%cóÀ‡—‰d}|�,tj||j¦«|_|j|_nd|_‰d|_‰ di¦«|_‰ di¦«|_‰ di¦«|_ ‰ dd¦«|_ ‰ dd¦«|_ d ‰vr |j   ‰d ¦«d ‰vr‡‰d |_ ‰d |_n�#t $r^t#¦«|_t%|j¦«D]3}|j||ur"|j |¦«|j|=Œ4Yn)wxYwd ‰vr‰d |_nt#¦«|_|j  ˆfd „d D¦«¦«|jrT |jd|_n@#t.$r3t1|j¦«dksJ‚|jdz|_d|_YnwxYwd‰vrt3j‰d¦«|_‰d||‰¦«dS)Nr{rrrWrTr‹FrŒr�r�r!có,•—g|]}|‰v¯|‰|f‘ŒSrr)r)rŠr”s €r#ú z.InstanceState.__setstate__..þs3ø€ð ð ð àØ˜ �?�?ð�J˜q”MÐ"à"�?�?r%)r*rŽrrr�r)rrrrrrÚgetrrWrTr‹rŒr�r‘r�r!ÚKeyErrorr ÚlistÚaddr‰r*Úidentity_tokenÚ IndexErrorÚlenrÚ deserializer�)r"r”ÚinstrŠs ` r#Ú __setstate__zInstanceState.__setstate__Øs¥ø€Ø˜*Ô%ˆØ Ð Ý”{ 4¨¬Ñ7Ô7ˆDŒHØœ.ˆDŒKˆKð ˆDŒHØ$ XÔ.ˆDŒKà)Ÿ~š~Ð.?ÀÑDÔDˆÔØ",§.¢.Ð1EÀrÑ"JÔ"JˆÔØ!—~’~ i°Ñ4Ô4ˆŒ Ø"Ÿš z°5Ñ9Ô9ˆŒ Ø!—~’~ i°Ñ7Ô7ˆŒ Ø �ZÐ Ð Ø ŒI× Ò ˜Z¨Ô/Ñ 0Ô 0Ð 0Ø ˜*Ð $Ð $Ø'¨ Ô4ˆDŒNð .Ø*4Ð5IÔ*J�Ô'Ð'øÝð .ð .ð .Ý*-©%¬%�Ô'å˜dœnÑ-Ô-ð.ð.�AØ”~ aÔ(¨DÐ0Ð0ØÔ/×3Ò3°AÑ6Ô6Ð6Ø œN¨1Ð-øð.ð.ð .øøøð$ zÐ1Ð1Ø*4Ð5IÔ*J�Ô'Ð'å*-©%¬%�Ô'à Œ ×Òð ð ð ð à0ð ñ ô ñ ô ð ð Œ8ð +ð +Ø&*¤h¨q¤k�Ô#Ð#øÝð +ð +ð +å˜4œ8‘}”}¨Ò)Ð)Ð)Ð)Øœ8 gÑ-�”Ø&*�Ô#Ð#Ð#ð  +øøøð ˜*Ð $Ð $Ý)Ô5°jÀÔ6MÑNÔNˆDŒNàˆ �9Ô˜d D¨*Ñ5Ô5Ð5Ð5Ð5s%Ä DÄA%E?Å>E?ÇG(Ç(:H%È$H%có*—| |d¦«}|�<|j|jjr%|j|j |¦«|j |¦«|jr|j |d¦«dSdS)zHRemove the given attribute and any callables associated with it.N)ÚpoprrÚ collectionÚ_invalidate_collectionr!Údiscardr�)r"Údict_r*Úolds r#Ú_resetzInstanceState._resets”€ð�iŠi˜˜TÑ"Ô"ˆØ ˆ?˜tœ|¨CÔ0Ô5Ô@ˆ?Ø ŒL˜Ô Ô "× 9Ò 9¸#Ñ >Ô >Ð >Ø Ô×'Ò'¨Ñ,Ô,Ð,Ø Œ>ð *Ø ŒN× Ò ˜s DÑ )Ô )Ð )Ð )Ð )ð *ð *r%cóN—d|jvrt|j¦«|_dSdS©Nr�)r‰r-r�)r"Úfrom_s r#Ú_copy_callableszInstanceState._copy_callabless,€Ø ˜%œ.Ð (Ð (Ý! %¤/Ñ2Ô2ˆDŒNˆNˆNð )Ð (r%cóP‡‡‡—|‰jЉjrˆˆˆfd„}nˆˆfd„}|S)Ncó–•—d|jvri|_| ‰d¦«}|�‰ |¦«‰|j‰<dSr¬)r‰r�r¤r¦)rfr¨Úrowr©Úfnrr*s €€€r#Ú _set_callablezGInstanceState._instance_level_callable_processor.._set_callable&sUø€Ø e¤nÐ4Ð4Ø&(�E”OØ—i’i  TÑ*Ô*�Ø�?Ø×/Ò/°Ñ4Ô4Ð4Ø')�” Ñ$Ð$Ð$r%có<•—d|jvri|_‰|j‰<dSr¬)r‰r�)rfr¨r±r²r*s €€r#r³zGInstanceState._instance_level_callable_processor.._set_callable0s)ø€Ø e¤nÐ4Ð4Ø&(�E”OØ')�” Ñ$Ð$Ð$r%)rr¥)Úclsrr²r*r³rs `` @r#Ú"_instance_level_callable_processorz0InstanceState._instance_level_callable_processor!siøøø€à�sŒ|Ô ˆØ Œ?ð *ð *ð *ð *ð *ð *ð *ð *ð *ð *ð *ð *ð *ð *ð *ð Ðr%có‡—d|_|jr5| |¦«|j ¦«d|_d|_d|jvr|jd=d|jvr|jd=|j ˆfd„|j j D¦«¦«|j r*|j  |j ¦«D] }|j |=Œ |j j   ‰¦«D]#}‰ |¦«}d|j_Œ$|jr+|j ˆfd„|jD¦«¦«|j j  ‰¦«D]}‰|=Œ|j j |d¦«dS)NTFrWrTcó>•—g|]}|js |j‰v¯|j‘ŒSr)Úexpire_missingr*)r)rr¨s €r#r˜z)InstanceState._expire..Hs?ø€ð ð ð àØÔ&ð ð+/¬(°eÐ*;Ð*;ð”à*;Ð*;Ð*;r%c3ó4•K—|]}|‰v¯|‰|fV—ŒdSrr)r)rŠr¨s €r#r+z(InstanceState._expire..Xs8øèè€ð+ð+Ø"#À!ÀuÀ*À*��E˜!”H� À*À*À*À*ð+ð+r%)rŒr‹r§rÚclearrcr‰r!r‘rÚ_scalar_loader_implsr�Ú intersectionÚ_collection_impl_keysr¤Ú _sa_adapterÚ invalidatedrFÚ _all_key_setr^Úexpire)r"r¨Ú modified_setrŠr¥r*s ` r#Ú_expirezInstanceState._expire7sØø€ØˆŒ à Œ=ð "Ø × Ò  Ñ &Ô &Ð &Ø Ô × &Ò &Ñ (Ô (Ð (Ø!ˆDŒMàˆÔà  4¤=Ð 0Ð 0Ø” Ð2Ð3à ˜œ Ð %Ð %Ø” ˜iÐ(à Ô×&Ò&ð ð ð ð à œLÔ=ð ñ ô ñ ô ð ð Œ>ð &ØÔ,×9Ò9¸$¼.ÑIÔIð &ð &�Ø”N 1Ð%Ð%à”Ô3×@Ò@ÀÑGÔGð 6ð 6ˆAØŸš 1™œˆJØ15ˆJÔ "Ô .Ð .à Ô "ð Ø Ô #× *Ò *ð+ð+ð+ð+Ø'+Ô'>ð+ñ+ô+ñ ô ð ð”<Ô,×9Ò9¸%Ñ@Ô@ð ð ˆCØ�c� � à Œ Ô×$Ò$ T¨4Ñ0Ô0Ð0Ð0Ð0r%cóT—|j dd¦«}|j}|D]â}|j|j}|jr1|r |js||vrŒ)|j |¦«|r||vr||=|  |t¦«}|j r|tur|  |¦«|j r||j vr|tur ||j |<|j  |d¦«|r|  |d¦«Œã|jj ||¦«dS)NrW)r‰r™r�rrÚaccepts_scalar_loaderÚ callable_r!rœr¤r r¥r¦rFrr^rÂ) r"r¨Úattribute_namesÚ no_loaderr5r�r*rr©s r#Ú_expire_attributesz InstanceState._expire_attributesas]€Ø”-×#Ò#Ð$8¸$Ñ?Ô?ˆà”Nˆ à"ð 'ð 'ˆCØ”< Ô$Ô)ˆDØÔ)ð 'Øð $¤.ð°C¸9Ð4DÐ4DØàÔ'×+Ò+¨CÑ0Ô0Ð0Øð' ¨ Ð!1Ð!1Ø! #˜Ø—)’)˜C¥Ñ*Ô*ˆCØŒð 1 3­hÐ#6Ð#6Ø×+Ò+¨CÑ0Ô0Ð0ðÔ'ð 3à˜4Ô2Ð2Ð2Ø�xÐ'Ð'à/2�Ô'¨Ñ,à Ô × $Ò $ S¨$Ñ /Ô /Ð /Øð 'Ø— ’ ˜C Ñ&Ô&Ð&øà Œ Ô×$Ò$ T¨?Ñ;Ô;Ð;Ð;Ð;r%cóØ—|tzstS|j |j¦«}|j ||¦«|j ¦«tS)z¡__call__ allows the InstanceState to act as a deferred callable for loading expired attributes, which is also serializable (picklable). ) rr r!r½Ú unmodifiedrÚdeferred_scalar_loaderr»r)r"rfr�Útoloads r#Ú _load_expiredzInstanceState._load_expired€sd€ð�Ñð %Ý$Ð $àÔ(×5Ò5°d´oÑFÔFˆà Œ ×+Ò+¨D°&Ñ9Ô9Ð9ð Ô×%Ò%Ñ'Ô'Ð'åÐr%cóZ—t|j¦« |j¦«S)z8Return the set of keys which have no uncommitted changes)r rÚ differencerr.s r#rÌzInstanceState.unmodified–s%€õ�4”<Ñ Ô ×+Ò+¨DÔ,@ÑAÔAÐAr%có€—t|¦« |j¦« |j¦«S)z*Return self.unmodified.intersection(keys).)r r½rrÑr)r"Úkeyss r#Úunmodified_intersectionz%InstanceState.unmodified_intersectionœs1€õ �‰IŒIß Š\˜$œ,Ñ 'Ô 'ß ŠZ˜Ô,Ñ -Ô -ð r%cóŠ—t|j¦« |j¦« |j¦«S)ú²Return the set of keys which do not have a loaded value. This includes expired attributes and any other attribute that was never populated or modified. )r rrÑrr-r.s r#ÚunloadedzInstanceState.unloaded¥s5€õ �” Ñ Ô ß ŠZ˜Ô,Ñ -Ô -ß ŠZ˜œ Ñ "Ô "ð r%cóZ‡—‰j ˆfd„‰jD¦«¦«S)rÖc3óJ•K—|]}‰j|jj¯|V—ŒdSr)rrr¹©r)Úattrr"s €r#r+z3InstanceState.unloaded_expirable..»sJøèè€ð* ð* àØŒ|˜DÔ!Ô&Ô5ð* Ø ð* ð* ð* ð* ð* ð* r%©r×r½rr.s`r#Úunloaded_expirablez InstanceState.unloaded_expirable³sGø€ðŒ}×)Ò)ð* ð* ð* ð* àœ ð* ñ* ô* ñ ô ð r%cóZ‡—‰j ˆfd„‰jD¦«¦«S)Nc3óJ•K—|]}‰j|jj¯|V—ŒdSr)rrrÆrÚs €r#r+z5InstanceState._unloaded_non_object..ÃsJøèè€ð* ð* àØŒ|˜DÔ!Ô&Ô<ð* Ø ð* ð* ð* ð* ð* ð* r%rÜr.s`r#Ú_unloaded_non_objectz"InstanceState._unloaded_non_objectÁsEø€àŒ}×)Ò)ð* ð* ð* ð* àœ ð* ñ* ô* ñ ô ð r%có—dSrrr.s r#rmzInstanceState._instance_dictÉrqr%cóà—|r¸|jsdS|r%|j|vrtjd|jz¦«‚|j|jvs|rV|rE|t ur|j|vr ||j}|dt t fvr| |¦«}||j|j<|j|jvrt |j|j<|j r|j �|j sšd|_ |  ¦«}|r|j  |¦«| ¦«}|j r||_ |€A|rAt!jd|j|j›dt'j|¦«›d�¦«‚dSdSdS)NzHCan't flag attribute '%s' modified; it's not present in the object stateTz'Can't emit change event for attribute 'z' - parent object of type z has been garbage collected.)Úsend_modified_eventsr*Úsa_excÚInvalidRequestErrorrr r ÚcopyrFrArcr‹rmÚ _modifiedrœrÚorm_excÚObjectDereferencedErrorrrÚstate_class_str)r"r¨rÛÚpreviousr¥Ú is_userlandror¡s r#Ú_modified_eventzInstanceState._modified_eventÌs»€ð ð =ØÔ,ð Ø�Øð ˜tœx¨uÐ4Ð4ÝÔ0ð'Ø)-¬ñ2ñôððŒx˜tÔ3Ð3Ð3°{Ð3Øð7Ø¥9Ð,Ð,Øœ8 uÐ,Ð,Ø',¨T¬X¤˜Hਭh½ Ð'BÐBÐBØ#'§9¢9¨XÑ#6Ô#6˜Ø19�Ô$ T¤XÑ.àŒx˜4Ô2Ð2Ð2Ý4<�Ô'¨¬Ñ1ð ŒOð  Ô 0Ð 8ÀÄÐ 8Ø ˆDŒMØ ×/Ò/Ñ1Ô1ˆMØð 2ØÔ'×+Ò+¨DÑ1Ô1Ð1ð —8’8‘:”:ˆDØŒð (Ø#'�Ô àˆ| ˆ|ÝÔ5Ð5ð”| D¤HÔ-Ð-Ð-­tÔ/CÀDÑ/IÔ/IÐ/IÐ/IðKñôðð!9Ð 8ðˆ|ˆ|ˆ|r%cód—|D]}|j |d¦«Œd|_|j t |¦« |¦«¦«|jrEt |j¦« |¦« |¦«D] }|j|=Œ dSdS)a8Commit attributes. This is used by a partial-attribute load operation to mark committed those attributes which were refreshed from the database. Attributes marked as "expired" can potentially remain "expired" after this step if a value was not populated in state.dict. NF)rr¤rŒr!Údifference_updater r½r�)r"r¨rÓr*s r#Ú_commitzInstanceState._commitûsÌ€ðð 0ð 0ˆCØ Ô × $Ò $ S¨$Ñ /Ô /Ð /Ð /àˆŒ à Ô×1Ò1Ý �‰IŒI× "Ò " 5Ñ )Ô )ñ ô ð ð Œ>ð (å�D”NÑ#Ô#×0Ò0°Ñ6Ô6×CÒCÀEÑJÔJð (ð (�ð”N 3Ð'Ð'ð  (ð (ð (ð (r%có8—| ||fg|¦«dS)aScommit all attributes unconditionally. This is used after a flush() or a full load/refresh to remove all pending state from the instance. - all attributes are marked as "committed" - the "strong dirty reference" is removed - the "modified" flag is set to False - any "expired" markers for scalar attributes loaded are removed. - lazy load callables for objects / collections *stay* Attributes marked as "expired" can potentially remain "expired" after this step if a value was not populated in state.dict. N)Ú_commit_all_states)r"r¨ros r#Ú _commit_allzInstanceState._commit_alls&€ð ×Ò $¨  °Ñ?Ô?Ð?Ð?Ð?r%có—|D]~\}}|j}|j ¦«d|vr|d=|j |¦«|r!|jr|j |¦«dx|_|_d|_ ŒdS)z.Mass / highly inlined version of commit_all().rWFN) r‰rr»r!rïr‹rçr§rŒrc)r"Úiter_rorfr¨r”s r#ròz InstanceState._commit_all_states*s©€ð"ð %ð %‰LˆE�5ØœˆJà Ô !× 'Ò 'Ñ )Ô )Ð )à# zÐ1Ð1ØÐ3Ð4à Ô $× 6Ò 6°uÑ =Ô =Ð =àð 7 ¤ð 7ØÔ'×/Ò/°Ñ6Ô6Ð6à-2Ð 2ˆEŒN˜Uœ]Ø $ˆEÔ Ð ð %ð %r%)Fr)FF)KÚ__name__Ú __module__Ú __qualname__Ú__doc__rAr*ÚrunidrÚ EMPTY_SETrŽrÚrootr�Ú insert_orderrcr‹rŒr8Ú _load_pendingÚ_orphaned_outside_of_sessionÚ is_instancer�rFr�r$r!Úmemoized_propertyr/Úpropertyr3r5r9r;r=r?Ú dependenciesr2rHrKrMrPrRrTrWrYr\Ú classmethodrgrirkrrr-r}r€rƒr†r•r¢rªr®r¶rÄrÊrÏrÌrÔr×rÝràrmrírðróròrr%r#rr"sÙ€€€€€ððð2€JØ €CØ €EØ”>€LØÔ!€IØ€LØ€KØ€HØ€GØ€HØ€MØ#(Р؀KØ€NØÐà€Ið ð(ð(ð(ðÐð<ð Ôð  ð  ñÔð  ðð7ð7ñ„Xð7ðð 3ð 3ñ„Xð 3ððIðIñ„XðIð:ððñ„Xðð.ðMðMñ„XðMð(ð;ð;ñ„Xð;ðØ€TÔÐ/Ñ0Ô0ð ð ñ1Ô0ñ„Xð ð 4ð 4ð 4ðØ€TÔÐ/Ñ0Ô0ð /ð /ñ1Ô0ñ„Xð /ðððñ„Xðð ððñ„Xðð&ð ð ñ„Xð ð ÔððñÔðð ÔððñÔðð Ôð#ð#ñÔð#ðððñ„Xððð%ð%ð%ñ„[ð%ð@6ð6ð6ð6ð ðððððð<ðððððñ„Xðð$ Bð Bð BðLðLðLð&ð&ð&ð,ð,ð,ð ððð486ð86ð86ðt *ð *ð *ð3ð3ð3ðððñ„[ðð*(1ð(1ð(1ðT<ð<ð<ð<ð>ððð,ðBðBñ„XðBð  ð ð ðð  ð  ñ„Xð  ðð  ð  ñ„Xð  ðð ð ñ„Xð ððððDIð-ð-ð-ð-ð^(ð(ð(ð:@ð@ð@ð@ð$ð%ð%ð%ñ„[ð%ð%ð%r%rcó`—eZdZdZd„Zed„¦«Zed„¦«Zed„¦«Zd„Z dS)r(aŠProvide an inspection interface corresponding to a particular attribute on a particular mapped object. The :class:`.AttributeState` object is accessed via the :attr:`.InstanceState.attrs` collection of a particular :class:`.InstanceState`:: from sqlalchemy import inspect insp = inspect(some_mapped_object) attr_state = insp.attrs.some_attribute có"—||_||_dSr)rfr*)r"rfr*s r#r$zAttributeState.__init__Ns€ØˆŒ ؈Œˆˆr%cóV—|jj |jt¦«S)zÇThe current value of this attribute as loaded from the database. If the value has not been loaded, or is otherwise not present in the object's dictionary, returns NO_VALUE. )rfr-r™r*r r.s r#Ú loaded_valuezAttributeState.loaded_valueRs €ðŒzŒ×"Ò" 4¤8­XÑ6Ô6Ð6r%cóš—|jj|j |j ¦«|jj¦«S)zàReturn the value of this attribute. This operation is equivalent to accessing the object's attribute directly or via ``getattr()``, and will fire off any pending loader callables if needed. )rfrr*Ú__get__rrr.s r#ÚvaluezAttributeState.value\s>€ðŒzÔ! $¤(Ô+×3Ò3Ø ŒJ�NŠNÑ Ô ˜dœjÔ/ñ ô ð r%cóL—|j |jt¦«S)aiReturn the current **pre-flush** change history for this attribute, via the :class:`.History` interface. This method will **not** emit loader callables if the value of the attribute is unloaded. .. note:: The attribute history system tracks changes on a **per flush basis**. Each time the :class:`.Session` is flushed, the history of each attribute is reset to empty. The :class:`.Session` by default autoflushes each time a :class:`_query.Query` is invoked. For options on how to control this, see :ref:`session_flushing`. .. seealso:: :meth:`.AttributeState.load_history` - retrieve history using loader callables if the value is not locally present. :func:`.attributes.get_history` - underlying function )rfr€r*r r.s r#ÚhistoryzAttributeState.historyis€ð4Œz×%Ò% d¤hÕ0EÑFÔFÐFr%có\—|j |jttz ¦«S)a%Return the current **pre-flush** change history for this attribute, via the :class:`.History` interface. This method **will** emit loader callables if the value of the attribute is unloaded. .. note:: The attribute history system tracks changes on a **per flush basis**. Each time the :class:`.Session` is flushed, the history of each attribute is reset to empty. The :class:`.Session` by default autoflushes each time a :class:`_query.Query` is invoked. For options on how to control this, see :ref:`session_flushing`. .. seealso:: :attr:`.AttributeState.history` :func:`.attributes.get_history` - underlying function .. versionadded:: 0.9.0 )rfr€r*r rr.s r#Ú load_historyzAttributeState.load_history…s#€ð2Œz×%Ò% d¤hµ ½gÑ0EÑFÔFÐFr%N) rör÷rørùr$rrr r rrr%r#r(r(?s•€€€€€ð ð ððððð7ð7ñ„Xð7ðð  ð  ñ„Xð  ððGðGñ„XðGð6GðGðGðGðGr%r(có$—eZdZdZd„Zd„Zd„ZdS)r…aA writable placeholder for an unloaded collection. Stores items appended to and removed from a collection that has not yet been loaded. When the collection is loaded, the changes stored in PendingCollection are applied to it to produce the final result. cóf—tj¦«|_tj¦«|_dSr)rÚ IdentitySetÚ deleted_itemsÚOrderedIdentitySetÚ added_itemsr.s r#r$zPendingCollection.__init__ªs*€Ý!Ô-Ñ/Ô/ˆÔÝÔ2Ñ4Ô4ˆÔÐÐr%có„—||jvr|j |¦«dS|j |¦«dSr)rÚremoverrœ©r"r s r#ÚappendzPendingCollection.append®sJ€Ø �DÔ&Ð &Ð &Ø Ô × %Ò % eÑ ,Ô ,Ð ,Ð ,Ð ,à Ô × Ò  Ñ 'Ô 'Ð 'Ð 'Ð 'r%có„—||jvr|j |¦«dS|j |¦«dSr)rrrrœrs r#rzPendingCollection.remove´sJ€Ø �DÔ$Ð $Ð $Ø Ô × #Ò # EÑ *Ô *Ð *Ð *Ð *à Ô × "Ò " 5Ñ )Ô )Ð )Ð )Ð )r%N)rör÷rørùr$rrrr%r#r…r…¡sK€€€€€ððð5ð5ð5ð(ð(ð(ð *ð*ð*ð*ð*r%r…)rùrÚrrrèrrrr r r r r rÚ path_registryrrärrÚ_self_inspectsÚInspectionAttrInforrMr(r…rr%r#úrsÝðððð€€€àÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐØ'Ð'Ð'Ð'Ð'Ð'Ø#Ð#Ð#Ð#Ð#Ð#ØÐÐÐÐÐØÐÐÐÐÐØ'Ð'Ð'Ð'Ð'Ð'ØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐð ÔðY %ðY %ðY %ðY %ðY %�JÔ1ñY %ôY %ñÔðY %ðx_Gð_Gð_Gð_Gð_G�Vñ_Gô_Gð_GðD*ð*ð*ð*ð*˜ñ*ô*ð*ð*ð*r%