Hacked By AnonymousFox

Current Path : /opt/cloudlinux/venv/lib/python3.11/site-packages/sqlalchemy/orm/__pycache__/
Upload File :
Current File : //opt/cloudlinux/venv/lib/python3.11/site-packages/sqlalchemy/orm/__pycache__/loading.cpython-311.pyc

�

�܋f/���~�dZddlmZddlZddlmZddlmZddlmZddlm	Z	dd	l
mZdd
l
mZddl
mZddl
mZd
dlmZd
dlm
Z
d
dlm
Ze
j��Zd�Ze
jd��d!d���Zd�Z	d"d�Z				d#d�Z			d"d�Zd�Z				d#d�Zd�Zd�Zd�Z d�Z!d�Z"Gd�de#��Z$d �Z%dS)$z�private module containing functions used to convert database
rows into object instances and associated state.

the functions here are called primarily by Query, Mapper,
as well as some of the attribute loading strategies.

�)�absolute_importN�)�
attributes)�exc)�
path_registry)�strategy_options)�_DEFER_FOR_STATE)�_SET_DEFERRED_EXPIRED)�	_none_set)�	state_str�)�utilc#�B�����
�K�t���_i�_�j}�j}|r|rt
}n�fd�}	t
t���fd��jD�����\�}|stj
d|���	i�_�jr��
�j��}|sdSn����}|r�d�
�
fd�|D��}n��fd�|D��}�j���D]\}	}
|
��|	���|rtj||��}|D]}|V���jsdS��#t$$rEtj��5����ddd��YdS#1swxYwYYdSwxYw)	z$Return an ORM result as an iterator.c�\��td�t�j|��D����S)Nc3�LK�|]\}}|jrt|��n|V�� dS�N)�use_id_for_hash�id)�.0�ent�items   �M/opt/cloudlinux/venv/lib64/python3.11/site-packages/sqlalchemy/orm/loading.py�	<genexpr>z/instances.<locals>.filter_fn.<locals>.<genexpr>2sL������!��T�!$� 3�=�B�t�H�H�H��������)�tuple�zip�	_entities)�row�querys �r�	filter_fnzinstances.<locals>.filter_fn1s=������%(���#�%>�%>������rc�>��g|]}|��������S�)�
row_processor)r�query_entity�context�cursorrs  ���r�
<listcomp>zinstances.<locals>.<listcomp>:s;������$�!�.�.�u�g�v�F�F���r�resultTrc�&��g|]
}�|����Sr"r")rr�procs  �rr'zinstances.<locals>.<listcomp>Ps!���3�3�3�c���S�	�	�3�3�3rc�@���g|]���fd��D������S)c�&��g|]
}|�����Sr"r")rr*rs  �rr'z(instances.<locals>.<listcomp>.<listcomp>Ss!��� ?� ?� ?�t���c��� ?� ?� ?rr")rr�keyed_tuple�processs @��rr'zinstances.<locals>.<listcomp>RsI�������� �K� ?� ?� ?� ?�w� ?� ?� ?�@�@���rN)�
_new_runid�runid�post_load_paths�_has_mapper_entities�is_single_entityr�listrrr�lightweight_named_tuple�partials�
_yield_per�	fetchmany�fetchall�items�invoke�unique_list�	Exception�safe_reraise�close)rr&r%�filtered�
single_entityr �labels�fetch�rows�path�	post_loadrr-r*r.s```         @@@r�	instancesrG"s������������L�L�G�M� �G���)�H��*�M��	��	��I�I�
�
�
�
�
�-� ��������(-�����
�
�
���&��	I��6�x��H�H�K�	�!�G����
*��(�(��)9�:�:�����E�����)�)���
��q�z��3�3�3�3�U�3�3�3��������$�����
$+�#:�#@�#@�#B�#B�
0�
0���i�� � ��$�/�/�/�/��
9��'��i�8�8���
�
���	�	�	�	��#�
���;	��<����
�
�
 �
 �	�	��L�L�N�N�N�	�	�	�	�	�	�	�	�	�	�	�	�	����	�	�	�	�	�	�	����sD�A.E�3BE�E�F�,F�F�F	�F�F	�F�Fzsqlalchemy.orm.queryTc	����
�|j�
�r�
����
j}	d�
_t|j��dk}|r@t|jd�j��r��
fd�|D��}n�t|��}nԈfd�t|j��D��}g}d�|jD��}tj
d|��}	|D]�}
t|
��}|D]W}||�M�
�tj
||��tj||���ii�	��||<�X|�|	|������t!|��|�
_S#|�
_wxYw)
z@Merge a result into this :class:`_query.Query` object's Session.Frrc	���g|]@}��tj|��tj|���ii�����AS)��load�
_recursive�_resolve_conflict_map)�_merger�instance_state�
instance_dict)r�instancerK�sessions  ��rr'z merge_result.<locals>.<listcomp>vsc���	�	�	�!��N�N�"�1�(�;�;�"�0��:�:�!�#%�.0�#���	�	�	rc�D��g|]\}}t|�j���|��Sr")�
isinstance�
_MapperEntity)r�i�e�querylibs   �rr'z merge_result.<locals>.<listcomp>�s@�������A�q��a��!7�8�8�����rc��g|]	}|j��
Sr")�_label_name)rrs  rr'z merge_result.<locals>.<listcomp>�s��?�?�?��C�O�?�?�?rr(NrJ)rR�
_autoflush�	autoflush�lenrrTrUr4�	enumeraterr5rNrrOrP�append�iter)rXr�iteratorrKr\rAr(�mapped_entities�keysr-r�newrowrVrRs`  `         @r�merge_resultregs�������m�G����������!�I�)&�!����E�O�,�,��1�
��"	3��%�/�!�,�h�.D�E�E�
(�	�	�	�	�	�%-�	�	�	����h���������%�e�o�6�6����O�
�F�?�?�u��?�?�?�D��6�x��F�F�K��
3�
3���c����(���A��a�y�,�$+�N�N�&�5�f�Q�i�@�@�&�4�V�A�Y�?�?�!%�')�24�%3�%�%��q�	���
�
�k�k�&�1�1�2�2�2�2��F�|�|�%�����I���%�%�%�%s�EE4�4	E=c��|j�|��}|��tj|��}|jr&|j�|��stjS|jrp|tj	zstj
S|tjzs|S	|�||��n,#tj$r|�|g��YdSwxYw|SdS)zqLook up the given key in the given session's identity map,
    check the object for expired state if found.

    N)�identity_map�getrrO�inherits�mapper�isa�PASSIVE_CLASS_MISMATCH�expired�SQL_OK�PASSIVE_NO_RESULT�RELATED_OBJECT_OK�
_load_expired�orm_exc�ObjectDeletedError�_remove_newly_deleted)rRrj�key�passiverQ�states      r�get_from_identityrx�s���
�#�'�'��,�,�H����)�(�3�3���?�	5�5�<�#3�#3�F�#;�#;�	5��4�4��=�	��Z�.�.�
 �!�3�3��z�;�;�
 � ��
��#�#�E�7�3�3�3�3���-�
�
�
��-�-�u�g�6�6�6��t�t�
�������ts�B)�)%C�Cc�Z�|�|d}|d}ndx}}t||||||���S)z.Load the given identity key from the database.Nrr
)�
refresh_state�with_for_update�only_load_props�identity_token)�load_on_pk_identity)rrurzr{r|�identr}s       r�
load_on_identr��sP��
���A����Q����!%�%����
�
�#�'�'�%�
���rc�X��|�)|���}|���n|���}|��|���}|j\}�d|vrwt	�fd�t|j|��D����}	tj||	��}t|	��t|��krtjd��|�|dd��}||_
t�fd�t||j��D����}
|
|_|�
d}||_n|j�d}|j|_nd}|�t%|��||||���d|_	|���S#t*j$rYdSwxYw)z6Load the given primary key identity from the database.Nc�4��g|]\}}|��|j��Sr�ru)r�col�value�_get_paramss   �rr'z'load_on_pk_identity.<locals>.<listcomp>�s6������"��U��}�	 ��$�(�%�}�}rzofully NULL primary key identity cannot load any object.  This condition may raise an error in a future release.TFc�4��g|]\}}�|j|f��Sr"r�)r�id_val�primary_keyr�s   �rr'z'load_on_pk_identity.<locals>.<listcomp>s:���
�
�
�'�F�K��[�)�-�v�6�
�
�
r)�populate_existing�
version_checkr|rzr})�_clone�_get_condition�_mapper_zero�_get_clause�setrr��sql_util�adapt_criterion_to_nullr]r�warn�
_adapt_clause�
_criterion�dict�_params�_for_update_arg�_get_options�bool�	_order_by�onerr�
NoResultFound)
r�primary_key_identityrzr{r|r}�qrjr��nones�paramsr�r�s
            @rr~r~�s������L�L�N�N��	��������L�L�N�N���'��#�#�%�%��%+�%7�"��k��'�'�'������&)��*�,@�'�'������E�#�:�;��N�N�K��5�z�z�S�!5�6�6�6�6��	�����
�o�o�k�4��?�?��"����
�
�
�
�+.�(�&�*<�,�,�
�
�
�
�
����	��"��
�+����	�	�	*��
�!�1�����
��N�N��}�-�-�#�'�#�%������A�K���u�u�w�w���� �����t�t����s�F�F)�(F)c	�8�|r|�|��}
n|j}
i}|�|jd|��|
D]#}|r
|j|vr�|j||||f|||d�|	���$|�2||jur+|r|j|}
n|}
|�|
��dSdSdS)N�memoized_setups)r|�column_collection�memoized_populators)	�_iterate_polymorphic_properties�_polymorphic_propertiesr�rru�setup�polymorphic_on�columnsr_)r%rjr$rE�adapterr��with_polymorphicr|�polymorphic_discriminator�kw�poly_properties�quick_populatorsr��pds              r�_setup_entity_queryr�#s���9� �@�@��
�
���!�8�����H�H�W�
�!2�4D�E�E�E� �
�
���	�u�y��?�?���������			
�
,�/� 0�		
�		
��		
�		
�		
�		
�	"�-�%�V�-B�B�B��	+���!:�;�B�B�*�B�� � ��$�$�$�$�$�	.�-�B�Brc�P�tjdt|���d���dS)NzLoading context for aW has changed within a load/refresh handler, suggesting a row refresh operation took place. If this event handler is expected to be emitting row refresh operations within an existing load or refresh operation, set restore_load_context=True when establishing the listener to ensure the context remains unchanged when the event handler completes.)rr�r)rws r�_warn_for_runid_changedr�Us:���I�I�!*�%� 0� 0� 0� 0�
	3�����rc	�������������������� �!�"�#�$�%�&��j��r�fd��D����j�tjt����j}	��!|	��fd��D����}	|��jdt��}
|	D�]}||
vr�|
|}|tur(�d�|j|j
f���@|tur#�d�|jdf���ld}
�r%�j|}|�|�|d��}
|
s|�|d��}
|
r#�d�|j|
f����|��|�|������|��|�|������	�j� �jjjr�jj|zn|��jj�%�jp�j�t5�jjj���t5�jjj���!t5�jjj����r�jjj�tj �tj!��jj"�$�j#�&�j$�#�j%��s�|��d	|jf}|�jvrC�j|j&d
kr-��'�j|j(d|��}n��'d|��}|r=||ur9��J�tS�||��}tT�+��|j,|||��tT�-�������r�j�"�"���.����"nd�"�j/r
tj0�ntj������������������� �!�"��#�$�%�&fd�}�j1r|s�ste|��|||���}|S)
z]Produce a mapper level row processor callable
    which processes rows into mapped instances.c�*��g|]}�j|��Sr")r�)r�cr�s  �rr'z'_instance_processor.<locals>.<listcomp>xs ���7�7�7�!�7�?�1�%�7�7�7rNc3�2�K�|]}�j|V��dSr)�_props)r�krjs  �rrz&_instance_processor.<locals>.<genexpr>�s*�����"M�"M��6�=��#3�"M�"M�"M�"M�"M�"Mrr��new�expireF�quick�loader))�selectinload_polymorphicT�entitiesc�����r1�}|���}�|��}|j� k}d}d}n�
t�fd��D�����f}�"�|��}|�>�|��}�|��}|j� k}|}d}�#r|st	�||����ns�|d��rdSd}d}d}�j���}�|��}�|��}||_�|_�!|_	�"�
||��|s��r0|r�s�s�|_�|_t��|||�|���	�	|r�|j}|rj�r:|jj�|���|j|krt#|���r+��j|��|j|krt#|��n=�r;|jj�|����|j� krt#|���s|jr1�r�r|�|���n|�|�"���r��|d��n�|j}	|�jv}|r
|	s�drrt5��|||�|	���}
|rZ�rB|j}|jj�|�|
��|j|krt#|��|�||
���r�jr��|d��|S)NTFc� ��g|]
}�|��Sr"r")r�columnrs  �rr'z:_instance_processor.<locals>._instance.<locals>.<listcomp>s���9�9�9�v�s�6�{�9�9�9rr�eager)�objr0rrh�_validate_version_id�
class_manager�new_instancerur}�
session_id�_add_unpresent�load_options�	load_path�_populate_full�manager�dispatchrKr�rR�refresh�modified�_commit�_commit_all�	add_state�unloadedr6�_populate_partial�invoke_all_eagers)$rrwrQ�dict_�isnew�currentload�loaded_instance�identitykey�existing_runidr��to_loadr�r%�identity_classr}rPrO�is_not_primary_key�load_evtr��loaded_as_persistentrjr|�persistent_evt�pk_colsr��
populatorsrF�propagate_options�refresh_evt�refresh_identity_keyrzr0r��session_identity_mapr�s$`          �������������������������r�	_instancez&_instance_processor.<locals>._instance�s!���� �4	H�!�E��y�y�{�{�H�!�M�(�+�+�E��K�5�(�E��K�#�O�O�
��9�9�9�9��9�9�9�:�:���K�,�/�/��<�<�H��#�&��x�0�0��%�
�h�/�/����u�,��"'�i��"'�� �M��M�(����s�G�L�L�L��&�%�k�!�n�5�5� ��4���"��"&��!�/�<�<�>�>��%�
�h�/�/��&��x�0�0��'��	�'5��$�$.�� �$�3�3�E�;�G�G�G�
�Y	2�+�Y	2��
,�+�
,�3D�
,�%6��"�"+�����������!��

�

�

��
G�"'���"�7��;��
�.�3�3�E�7�C�C�C� �;�.�8�8�3�E�:�:�:�%�;�,�,�W�_�e�D�D�D� �;�.�8�8�3�E�:�:�:�� �7��M�*�2�2��w������{�e�+�+�/��6�6�6�$�G���G�$�G��G��
�
�e�_�=�=�=�=��)�)�%�1E�F�F�F��
1��#�#�E�4�0�0�0���~�H���!1�1�E��
2�H�
2�
�7�(;�
2�
,���������	�	���2�"�;�).����
�.�6�6�u�g�w�O�O�O� �;�.�8�8�3�E�:�:�:��M�M�%��1�1�1��
2�W�6�
2��#�#�E�5�1�1�1��r)3r��_identity_class�collections�defaultdictr4�	_prop_set�intersectionrhrrr	r_ru�_deferred_column_loaderr
r��_getter�create_row_processorr�r�
_current_pathrErRrgr��always_refreshr�r�r�rKr�r�rOrP�hash_keyr�r0r}�strategy�_should_selectin_load�
local_opts�_load_subclass_via_in�PostLoad�callable_for_pathrj�for_context�_identity_key_from_state�allow_partial_pks�
issuperset�polymorphic_map�_decorate_polymorphic_switch)'rjr%r(rEr�r|rzr��_polymorphic_from�propsr��propr��getter�adapted_colru�selectin_load_via�	callable_r�r�r}rPrOr�r�r�r�r�r�r�r�rFr�r�r�r0r�r�r�s'``  ```            @@@@@@@@@@@@@@@@@@@@r�_instance_processorr	asZ���������������������������(� �G��8�7�7�7�7�w�7�7�7���+�N��(��.�.�J���E��"��"�"�"M�"M�"M�"M�_�"M�"M�"M�M�M���x�x���-�y�����,�,���#�#�#�"�4�(�C��&�&�&��5�!�(�(��X�t�;�<������-�-�-��8�$�+�+�T�X�u�,=�>�>�>�>����D�")�/�#�"6�K�"�.�!'����U�!C�!C���8�#�^�^�C��7�7�F����w�'�.�.���&�/A�B�B�B�B�
�-�-���v�v�w�
�����
�%�%���v�v�w�
�
�
�
�
� �1���=�&�+�	��
�#�d�*�*�
��#�?�7���1�J�V�5J���F�(�1�6�7�7�H��v�+�4�<�=�=�K��'�/�2�G�H�H�N��M�&��7�L���.�N��,�M���)�J��)�M��M�E��+�N���.�:����#���'�$�$�$��);�C�)@�)I�N
�*
�*
�!'� <� <��"�3�'�2�:�>�!�!�!���
!'� <� <��'�!�!���	�!2�:K�!K�!K�#�*�*�*�-�g�t�=N�O�O�I��&�&���!�(�!��!�

�
�
��$�$�W�i��I�I�I��
$�,�0���'�$*�#B�#B��$�$� �� $��
��4�&�1���&�3��W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�W�r��
�&7�
�
�
�1������%��
�
�	��rc������|j}t|jj��dk�|jr|�|��\���n|j\�������fd�}|S)Nrc�(��|j}�	��f|jz�fz|j|���}|jr|�d���||j����
fd�|D��������dS)N)�
cache_pathc�*�|���Sr)r�)r�s r�<lambda>z8_load_subclass_via_in.<locals>.do_load.<locals>.<lambda>�s��a�&9�&9�&;�&;�rc�Z��g|]'\}}�r|jddn|jd��(S)rrr�)rrw�
load_attrs�zero_idxs   �rr'z:_load_subclass_via_in.<locals>.do_load.<locals>.<listcomp>�sF������%�E�:�$,�=��	�!��Q�����1����r)�primary_keys)	r�_with_lazyload_options�
_with_options�parent�_populate_existing�add_criteriarRr��all)r%rE�states�	load_only�effective_entity�
orig_query�q2�disable_opt�
enable_optr�rs       ����r�do_loadz&_load_subclass_via_in.<locals>.do_load�s�����]�
�
�
%�
%�
�M�J�4�4��~�E��K��&�
�
���(�	=��O�O�;�;�<�<�<�
��7�?���"�"�����)/����	#�	
�	
�
�#�%�%�%�%�%r)rjr]�base_mapperr��is_aliased_class�_subclass_load_via_in�_subclass_load_via_in_mapper)	r%rE�entityrjr rrr�rs	     @@@@rr�r��s�������
�]�F��6�%�1�2�2�a�7�H�
��I�%+�%A�%A�&�%I�%I�"��:�{�{�%+�%H�"��:�{���������&�Nrc	�x�|r�|j|_|dD]\}	}
|
|��||	<�|rA|dD]7\}	}|�|	d��|r|j�|	���8n*|dD]!\}	}|r|j�|	���"|dD]\}	}||||���|dD]\}	}||||���dS||jkrD||_|dD]\}	}
|	|vr|
|��||	<�|dD]\}	}||||���dS|dD]\}	}||||���dS)Nr�r�r��delayed�existing)r0�pop�expired_attributes�addr�)
r%rrwr�r�r�r�r�r�rur�set_callable�	populators
             rr�r��s��
�))��m���%�g�.�	%�	%�K�C�������E�#�J�J��	6�%/��%9�
6�
6�!��\��	�	�#�t�$�$�$��6��,�0�0��5�5�5��
6�
&0��%9�
6�
6�!��\��6��,�0�0��5�5�5��(��/�	)�	)�N�C���I�e�U�C�(�(�(�(�(��3�	)�	)�N�C���I�e�U�C�(�(�(�(�	)�	)�	�e�o�	%�	%�$���&�g�.�	)�	)�K�C���%���#�V�C�[�[��c�
��)��4�	)�	)�N�C���I�e�U�C�(�(�(�(�	)�	)�)��4�	)�	)�N�C���I�e�U�C�(�(�(�(�	)�	)rc��|s-|j|}|dD]\}	}
|	|vr
|
|||���n�|}||j|<|dD]\}	}|	|vr||��||	<�|dD];\}	}|	|vr2|�|	d��|r|j�|	���<|dD]\}	}
|	|vr
|
|||���|dD]\}	}
|	|vr
|
|||���|dD]\}	}
|	|vr
|
|||���|S)Nr(r�r�r�r'r�)r6r)r*r+)
r%rrwr�r�r�r�r�r�rur-rr,s
             rr�r��s����-��"�5�)��(��4�	-�	-�N�C���g�~�~��	�%���,�,�,��	-���")�����%�g�.�	)�	)�K�C���g�~�~�#�V�C�[�[��c�
��!+�H�!5�	6�	6��C���g�~�~��	�	�#�t�$�$�$��6��,�0�0��5�5�5��(��/�	-�	-�N�C���g�~�~��	�%���,�,�,��(��3�	-�	-�N�C���g�~�~��	�%���,�,�,��$�W�-�)�)���Y��h����I�e�U�C�(�(�(���Nrc
��|j}|�dS|r
|j|}|�|||j��||krKtjdt|���d|�|||j���d||�d����dS)Nz
Instance 'z' has version id 'z3' which does not match database-loaded version id 'z'.)�version_id_colr��_get_state_attr_by_columnrr�StaleDataErrorr)rjrwr�rr�r0s      rr�r�!s����*�N������9� ���8��	�(�(���v�7L�M�M��~��	�	��$�$��%� � � � ��0�0��5�&�"7������N�#�#�#�
�

�

�
	
�	�	rc��������	�
�|�|�
n�j�
�
��S�r
�j�
�
�����fd�}tj|���	��	�
fd�}|S)Nc���	�j|}|�urdSt|��������S#t$rtd|z���wxYw)N)rz*No such polymorphic_identity %r is defined)rr	�KeyError�AssertionError)�
discriminator�
sub_mapperr�r%rjrEr(s  �����r�configure_subclass_mapperz?_decorate_polymorphic_switch.<locals>.configure_subclass_mapperOs����	��/�
�>�J��V�#�#��t�&������"(�
���
���	�	�	� �<�}�L���
�	���s	�
+�Ac�X��|�}|��|}|r||��S�|��Srr")rr7r��instance_fn�polymorphic_instancesr�s   ���r�polymorphic_instancez:_decorate_polymorphic_switch.<locals>.polymorphic_instanceesC����N�+�
��$�-�m�<�I��
&� �y��~�~�%��{�3���r)r�r�r�PopulateDict)r;r%rjr(rEr�r�r9r=r<r�s````` `  @@rrr<s�����������!�,�2����.�������9� ���8�����������(!�-�.G�H�H�� � � � � � � � �rc�j�eZdZdZdZd�Zd�Zd�Zed���Z	ed���Z
ed���Zd	S)
r�z4Track loaders and states for "post load" operations.)�loadersr�	load_keysc�R�i|_tj��|_d|_dSr)r@r�OrderedDictrrA)�selfs r�__init__zPostLoad.__init__us$������&�(�(�������rc��||j|<dSr)r)rDrw�	overwrites   rr�zPostLoad.add_statezs��
'���E���rc�D��|jsdStj�|��}|j���D]C\}�}}}�fd�|j���D��}|r|||||jg|�Ri|���D|j���dS)Nc�\��g|](\}}|jj�����$||f��)Sr")r�rjrk)rrwrG�limit_to_mappers   �rr'z#PostLoad.invoke.<locals>.<listcomp>�sK������$�E�9��=�'�+�+�O�<�<���	�"���r)	rr�PathRegistry�coercer@�valuesr:rA�clear)	rDr%rE�tokenr��argr�rrJs	        @rr;zPostLoad.invoke�s�����{�	��F��)�0�0��6�6��7;�|�7J�7J�7L�7L�	J�	J�3�E�?�F�C������(,��(9�(9�(;�(;����F�
�
J���w��f�d�n�I�s�I�I�I�b�I�I�I����������rc�Z�|j�|j��}|�	|r||_|Sr)r1rhrErA)�clsr%rEr|�pls     rr�zPostLoad.for_context�s/��
�
$�
(�
(���
3�
3��
�>�o�>�*�B�L��	rc�P�|j|jvo||j|jjvSr)rEr1r@)rDr%rErus    r�path_existszPostLoad.path_exists�s1��
�I��0�0�
B��w�.�t�y�9�A�A�	
rc��|j|jvr|j|j}nt��x}|j|j<|||||f|j|<dSr)rEr1r�r@)	rRr%rErJrO�loader_callablerPr�rSs	         rr�zPostLoad.callable_for_path�sZ���9��/�/�/��(���3�B�B�6>�j�j�@�B��(���3�"�O�_�c�2�N��
�5���rN)�__name__�
__module__�__qualname__�__doc__�	__slots__rEr�r;�classmethodr�rUr�r"rrr�r�ps�������>�>�0�I����
'�'�'��������[���
�
��[�
��O�O��[�O�O�Orr�c�&��|j}|s$tjdt|��z���t	|j��}d}|r,|��j�����}�j	r��j
s���||��}|�qt|�
����tj����d�����|��d||���}|dur�|r|j}nf�fd��jD��}|j�|��r$t+jdt|��z�����|��}t1j|��r�jrt1j|��r$t9jdt|����dSt|�
���|||�	��}|r|�tj|���dSdS)
z4initiate a column-based attribute refresh operation.zQInstance %s is not bound to a Session; attribute refresh operation cannot proceedFN�*)r|rzc�4��g|]}�j|j��Sr")�_columntopropertyru)rr�rjs  �rr'z*load_scalar_attributes.<locals>.<listcomp>�s1������69��(��-�1���rz_Instance %s cannot be refreshed - it's not  persistent and does not contain a full primary key.zwInstance %s to be refreshed doesn't contain a full primary key - can't be refreshed (and shouldn't be expired, either).)rzr|)rRrr�DetachedInstanceErrorrr�rur��attrsrcri�concrete�_optimized_get_statementr�r�optionsr�Load�undefer�from_statementr�r*�sa_exc�InvalidRequestErrorr�r�issubsetr�r�r�warn_limitedrs)	rjrw�attribute_namesrR�has_keyr(�	statement�identity_key�pk_attrss	`        r�load_scalar_attributesrs�sn����m�G��
��+�
9�<E�e�<L�<L�
N�
�
�	
�
�5�9�o�o�G�
�F��L�)�6�6�v�|�7H�7H�7J�7J�K�K��
���v���
�3�3�E�?�K�K�	�� �"��
�
�f�%�%���)�.�v�6�6�>�>�s�C�C�D�D���	�*�*�� /�#�
���F������	B� �9�L�L�����=C�=O����H��'�4�4�X�>�>�
��0�2�4=�e�4D�4D�E����
"�:�:�5�A�A�L�
��|�,�,�		�5;�5M�		�
�
!�,�
/�
/�		�
��6��%� � �	
�
�
�
�F���M�M�&�!�!���+�	
�
�
���0�6�>��(��/�/�/�0�0�>�>r)T)NNN)NNNN)&r[�
__future__rr��rrrrrr�baser	r
rrrrj�sqlr��counterr/rG�dependenciesrerxr�r~r�r�r	r�r�r�r�r�objectr�rsr"rr�<module>r{s�����'�&�&�&�&�&�����������������������������"�"�"�"�"�"�'�'�'�'�'�'�������������������������"�"�"�"�"�"�
�T�\�^�^�
�B�B�B�J���)�*�*�2&�2&�2&�+�*�2&�j���BKO�����0����
N�N�N�N�p��"�/%�/%�/%�/%�d	�	�	�$��"��A�A�A�A�H
���@4)�4)�4)�t���D
�
�
�61 �1 �1 �h5O�5O�5O�5O�5O�v�5O�5O�5O�pP0�P0�P0�P0�P0r

Hacked By AnonymousFox1.0, Coded By AnonymousFox