| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/contrib/messages/storage/__pycache__/ |
Upload File : |
�
�|�e+ � �t � d dl mZ d dlmZmZ ej � � Z G d� d� � Z G d� d� � ZdS )� )�settings)� constants�utilsc �X � e Zd ZdZd d�Zd� Zd� Zd� Zed� � � Z ed� � � Z
dS )
�Messagez�
Represent an actual message that can be stored in any of the supported
storage classes (typically session- or cookie-based) and rendered in a view
or template.
Nc �J � t |� � | _ || _ || _ d S �N)�int�level�message�
extra_tags��selfr r r
s �F/usr/lib/python3/dist-packages/django/contrib/messages/storage/base.py�__init__zMessage.__init__ s! � ���Z�Z��
����$����� c �| � t | j � � | _ | j �t | j � � nd| _ dS )z�
Prepare the message for serialization by forcing the ``message``
and ``extra_tags`` to str in case they are lazy translations.
N)�strr r
�r s r �_preparezMessage._prepare s7 � �
�4�<�(�(���26�/�2M�#�d�o�.�.�.�SW����r c �z � t |t � � st S | j |j k o| j |j k S r )�
isinstancer �NotImplementedr r )r �others r �__eq__zMessage.__eq__ s7 � ��%��)�)� "�!�!��z�U�[�(�J�T�\�U�]�-J�Jr c �* � t | j � � S r )r r r s r �__str__zMessage.__str__ s � ��4�<� � � r c �X � d� d� | j | j fD � � � � S )N� c 3 � K � | ]}|�|V � � d S r � )�.0�tags r � <genexpr>zMessage.tags.<locals>.<genexpr>% s'