관리-도구
편집 파일: dynamic.cpython-311.pyc
� �܋fK9 � � � d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd lm Z dd lm Z ddlmZ ddlmZ dd lm Z ej ej � d �� � G d� de j � � � � � � Z G d� dej � � Z G d� de� � Z G d� dee � � Zd� Z G d� de� � ZdS )z�Dynamic collection API. Dynamic collections act like Query() objects for read operations and support basic add/delete mutation. � )� attributes)�exc)� interfaces)� object_mapper)�object_session)� properties)� strategies)�util)�Query� )�log�dynamic)�lazyc � � e Zd Zd� ZdS )� DynaLoaderc �` � d| _ | j st j d| j z � � �| j j t j t j fvrt j d| j z � � t j | j |dt | j j | j j | j j �� � d S )NTztOn relationship %s, 'dynamic' loaders cannot be used with many-to-one/one-to-one relationships and/or uselist=False.z�On relationship %s, 'dynamic' loaders cannot be used with many-to-one/one-to-one relationships and/or uselist=False. This warning will be an exception in a future release.)� useobject� impl_class� target_mapper�order_by�query_class)�is_class_level�uselistr �InvalidRequestError�parent_property� directionr � ONETOMANY� MANYTOMANYr �warnr �_register_attribute�DynamicAttributeImpl�mapperr r )�selfr"