Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
local
/
lib
/
python3.10
/
dist-packages
/
sqlalchemy
/
orm
/
__pycache__
📤 Upload
📝 New File
📁 New Folder
Close
Editing: unitofwork.cpython-310.pyc
o [�h�` � @ s d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z d d � Z G dd� de�ZG d d� de�Z G dd� de �ZG dd� de�ZG dd� de e�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd � d e�Zd!S )"z�The internals for the unit of work system. The session's flush() process passes objects to a contextual object here, which assembles flush tasks based on mappers and their properties, organizes them in order of dependency, and executes. � �� attributes)�exc)�persistence)�util� )�event)�topologicalc sj |j � � fdd�}� fdd�}� fdd�}tj| d|ddd � tj| d |ddd � tj| d|ddd � dS ) z\Establish event listeners on object attributes which handle cascade-on-set/append. c sn |d u rd S | j }|r5|jr|�d� | jjj� }t�|�}|jj r5|j s+� |jkr5|�|�s5|� |� |S )Nzcollection append)�session�_warn_on_events�_flush_warning�manager�mapper�_propsr �instance_state�_cascade�save_update�cascade_backrefs�key�_contains_state�_save_or_update_state��state�item� initiator�sess�prop� item_state�r � �D/usr/local/lib/python3.10/dist-packages/sqlalchemy/orm/unitofwork.py�append s"