Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/sqlalchemy/orm/__pycache__/descriptor_props.cpython-39.pyc
Ðазад
a _�hTr � @ s4 d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd lm Z dd lmZ ddlm Z ddlmZ dd lmZ ddlmZ G dd� de�Zejjddd�G dd� de��Zejjddd�G dd� de��Zejjddd�G dd� de��Zejjddd�e�dd�G dd� de���ZdS )z�Descriptor properties are more "auxiliary" properties that exist as configurational elements, but don't participate as actively in the load/persist ORM loop. � )� attributes)� properties)�query)�MapperProperty)�PropComparator)� _none_set� )�event)�exc)�schema)�sql)�util)� expressionc @ s e Zd ZdZdZdZdd� ZdS )�DescriptorPropertyzO:class:`.MapperProperty` which proxies access to a user-defined descriptor.NFc s� ��G �fdd�dt �}�jd u rBt� j�jd �}� �|�rB|�_�jd u r��fdd�}�fdd�}�fdd�}t|||d ��_t��j��j j�j�j� �fd d��j �d�}|�j�|_� j� �j|� d S ) Nc sL e Zd ZdZdZdZe� fdd��Zdd� Ze � d�rHe jf� fdd � Zd S )z7DescriptorProperty.instrument_class.<locals>._ProxyImplFTc s � j S �N)�uses_objects��self��prop� ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/sqlalchemy/orm/descriptor_props.pyr , s zDDescriptorProperty.instrument_class.<locals>._ProxyImpl.uses_objectsc S s || _ d S r ��key)r r r r r �__init__0 s z@DescriptorProperty.instrument_class.<locals>._ProxyImpl.__init__�get_historyc s � � |||�S r )r )r �state�dict_�passiver r r r 5 s zCDescriptorProperty.instrument_class.<locals>._ProxyImpl.get_historyN) �__name__� __module__�__qualname__Zaccepts_scalar_loaderZexpire_missingZ collection�propertyr r �hasattrr �PASSIVE_OFFr r r r r � _ProxyImpl'