|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /usr/lib64/python2.7/site-packages/django/contrib/messages/storage/ |
Upload File : |
�
r�\c @ s� d d l m Z d d l m Z d d l m Z m Z d d l m Z m Z e j
� Z e d e f d � � Y� Z
d e f d � � YZ d S(
i����( t unicode_literals( t settings( t
force_textt python_2_unicode_compatible( t constantst utilst Messagec B sJ e Z d Z d d � Z d � Z d � Z d � Z d � Z e e � Z
RS( u�
Represents 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.
c C s% t | � | _ | | _ | | _ d S( N( t intt levelt messaget
extra_tags( t selfR R R
( ( sF /tmp/pip-install-XxeQeY/django/django/contrib/messages/storage/base.pyt __init__ s c C s4 t | j d t �| _ t | j d t �| _ d S( u
Prepares the message for serialization by forcing the ``message``
and ``extra_tags`` to unicode in case they are lazy translations.
Known "safe" types (None, int, etc.) are not converted (see Django's
``force_text`` implementation for details).
t strings_onlyN( R R t TrueR
( R ( ( sF /tmp/pip-install-XxeQeY/django/django/contrib/messages/storage/base.pyt _prepare s c C s1 t | t � o0 | j | j k o0 | j | j k S( N( t
isinstanceR R R ( R t other( ( sF /tmp/pip-install-XxeQeY/django/django/contrib/messages/storage/base.pyt __eq__# s !c C s
t | j � S( N( R R ( R ( ( sF /tmp/pip-install-XxeQeY/django/django/contrib/messages/storage/base.pyt __str__'