|
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 : /lib64/python2.7/site-packages/django/contrib/comments/views/ |
Upload File : |
�
r�\c @@ sT d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z m
Z
d d l m Z d d l
m Z m Z d d l m Z m Z d d l m Z e e d d
� � � Z e e
d � d d � � � Z e e
d � d d
� � � Z d � Z d � Z d � Z e d d d d � Z e d d d d � Z e d d d d � Z d S( i ( t absolute_import( t template( t settings( t comments( t login_requiredt permission_required( t signals( t
next_redirectt confirmation_view( t get_object_or_404t render_to_response( t csrf_protectc C@ s� t t j � d | d t j �} | j d k r\ t | | � t | d | pO d d | j �St d i | d 6| d 6t
j | � � Sd
S( s�
Flags a comment. Confirmation on GET, action on POST.
Templates: :template:`comments/flag.html`,
Context:
comment
the flagged `comments.comment` object
t pkt site__pkt POSTt fallbacks comments-flag-donet cs comments/flag.htmlt commentt nextN( R R t get_modelR t SITE_IDt methodt perform_flagR R R
R t RequestContext( t requestt
comment_idR R ( ( sJ /tmp/pip-install-XxeQeY/django/django/contrib/comments/views/moderation.pyt flag
s !
s comments.can_moderatec C@ s� t t j � d | d t j �} | j d k r\ t | | � t | d | pO d d | j �St d i | d 6| d 6t
j | � � Sd
S( s�
Deletes a comment. Confirmation on GET, action on POST. Requires the "can
moderate comments" permission.
Templates: :template:`comments/delete.html`,
Context:
comment
the flagged `comments.comment` object
R R
R R s comments-delete-doneR s comments/delete.htmlR R N( R R R R R R t perform_deleteR R R
R R ( R R R R ( ( sJ /tmp/pip-install-XxeQeY/django/django/contrib/comments/views/moderation.pyt delete'