https://t.me/RX1948
Server : Apache
System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User : dh_edsupp ( 6597262)
PHP Version : 8.2.26
Disable Function : NONE
Directory :  /lib/python3/dist-packages/django/contrib/messages/storage/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/django/contrib/messages/storage/__pycache__/fallback.cpython-310.pyc
o

ǎ�_/�@s8ddlmZddlmZddlmZGdd�de�ZdS)�)�BaseStorage)�
CookieStorage)�SessionStoragecs8eZdZdZeefZ�fdd�Zdd�Zdd�Z	�Z
S)�FallbackStoragezu
    Try to store all messages in the first backend. Store any unstored
    messages in each subsequent backend.
    cs6t�j�i�����fdd�|jD�|_t�|_dS)Ncsg|]	}|�i����qS�r)�.0�
storage_class��args�kwargsr�J/usr/lib/python3/dist-packages/django/contrib/messages/storage/fallback.py�
<listcomp>s�z,FallbackStorage.__init__.<locals>.<listcomp>)�super�__init__�storage_classes�storages�set�_used_storages)�selfr
r��	__class__r	rr
s
�zFallbackStorage.__init__cOs^g}|jD]%}|��\}}|dur||fS|r|j�|�|�|�|r*||fSq||fS)zJ
        Get a single list of messages from all storage backends.
        N)r�_getr�add�extend)rr
r�all_messages�storage�messages�
all_retrievedrrrrs
�
�zFallbackStorage._getcOsH|jD]}|r|j||dd�}q||jvr!|�g|�|j�|�q|S)z�
        Store the messages and return any unstored messages after trying all
        backends.

        For each storage backend, any messages not stored are passed on to the
        next backend.
        F)�
remove_oldest)r�_storer�remove)rr�responser
rrrrrr&s

�zFallbackStorage._store)�__name__�
__module__�__qualname__�__doc__rrrrrr�
__classcell__rrrrrsrN)�$django.contrib.messages.storage.baser�&django.contrib.messages.storage.cookier�'django.contrib.messages.storage.sessionrrrrrr�<module>s

https://t.me/RX1948 - 2025