| 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/__pycache__/ |
Upload File : |
�
�|�e� � � � d dl mZ d dlmZ dZ G d� de� � Zdd�Zd � Zd
� Z d� Z
dd�Zdd
�Zdd�Z
dd�Zdd�ZdS )� )� constants)�default_storage)
�add_message�get_messages� get_level� set_level�debug�info�success�warning�error�MessageFailurec � � e Zd ZdS )r N)�__name__�
__module__�__qualname__� � �=/usr/lib/python3/dist-packages/django/contrib/messages/api.pyr r s � � � � � ��Dr r � Fc �� � | j }|� |||� � S # t $ rA t | d� � st d| j j z � � �|st d� � �Y dS w xY w)zK
Attempt to add a message to the request using the 'messages' app.
�METAz?add_message() argument must be an HttpRequest object, not '%s'.z_You cannot add messages without installing django.contrib.messages.middleware.MessageMiddlewareN)� _messages�add�AttributeError�hasattr� TypeError� __class__r r )�request�level�message�
extra_tags�
fail_silently�messagess r r r s� � �8��$�� �|�|�E�7�J�7�7�7�� �
�
�
��w��'�'� ���!�+�4�5�� �
� � � �G�� �
� � � �
���s � �AA+�*A+c �$ � t | dg � � S )ze
Return the message storage on the request if it exists, otherwise return
an empty list.
r )�getattr)r s r r r % s � �
�7�K��,�,�,r c �L � t | dt | � � � � }|j S )z�
Return the minimum level of messages to be recorded.
The default level is the ``MESSAGE_LEVEL`` setting. If this is not found,
use the ``INFO`` level.
r )r&