https://t.me/AnonymousX5
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/contrib/comments/views/moderation.pyc
�
r�\c@@sTddlmZddlmZddlmZddlmZddlm	Z	m
Z
ddlmZddl
mZmZddlmZmZdd	lmZee	dd
���Zee
d�dd���Zee
d�dd
���Zd�Zd�Zd�Zedddd�Zedddd�Zedddd�ZdS(i(tabsolute_import(ttemplate(tsettings(tcomments(tlogin_requiredtpermission_required(tsignals(t
next_redirecttconfirmation_view(tget_object_or_404trender_to_response(tcsrf_protectcC@s�ttj�d|dtj�}|jdkr\t||�t|d|pOdd|j�St	di|d6|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
    tpktsite__pktPOSTtfallbackscomments-flag-donetcscomments/flag.htmltcommenttnextN(R	Rt	get_modelRtSITE_IDtmethodtperform_flagRRR
RtRequestContext(trequestt
comment_idRR((sJ/tmp/pip-install-XxeQeY/django/django/contrib/comments/views/moderation.pytflag
s!

scomments.can_moderatecC@s�ttj�d|dtj�}|jdkr\t||�t|d|pOdd|j�St	di|d6|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
RRscomments-delete-doneRscomments/delete.htmlRRN(R	RRRRRtperform_deleteRRR
RR(RRRR((sJ/tmp/pip-install-XxeQeY/django/django/contrib/comments/views/moderation.pytdelete's!

cC@s�ttj�d|dtj�}|jdkr\t||�t|d|pOdd|j�St	di|d6|d	6t
j|��Sd
S(s*
    Approve a comment (that is, mark it as public and non-removed). Confirmation
    on GET, action on POST. Requires the "can moderate comments" permission.

    Templates: :template:`comments/approve.html`,
    Context:
        comment
            the `comments.comment` object for approval
    RR
RRscomments-approve-doneRscomments/approve.htmlRRN(R	RRRRRtperform_approveRRR
RR(RRRR((sJ/tmp/pip-install-XxeQeY/django/django/contrib/comments/views/moderation.pytapproveCs!

cC@sktjjjjd|d|jdtjjj�\}}tjj	d|j
d|d|d|d|�dS(sD
    Actually perform the flagging of a comment from a request.
    RtuserRtsendertcreatedRN(RtmodelstCommentFlagtobjectst
get_or_createRtSUGGEST_REMOVALRtcomment_was_flaggedtsendt	__class__(RRRR!((sJ/tmp/pip-install-XxeQeY/django/django/contrib/comments/views/moderation.pyRcs		cC@s~tjjjjd|d|jdtjjj�\}}t|_|j	�t
jjd|j
d|d|d|d|�dS(NRRRR R!R(RR"R#R$R%RtMODERATOR_DELETIONtTruet
is_removedtsaveRR'R(R)(RRRR!((sJ/tmp/pip-install-XxeQeY/django/django/contrib/comments/views/moderation.pyRts		
	cC@s�tjjjjd|d|jdtjjj�\}}t|_t	|_
|j�tj
jd|jd|d|d|d|�dS(NRRRR R!R(RR"R#R$R%RtMODERATOR_APPROVALtFalseR,R+t	is_publicR-RR'R(R)(RRRR!((sJ/tmp/pip-install-XxeQeY/django/django/contrib/comments/views/moderation.pyR�s			
	Rscomments/flagged.htmltdocs.Displays a "comment was flagged" success page.scomments/deleted.htmls.Displays a "comment was deleted" success page.scomments/approved.htmls/Displays a "comment was approved" success page.N(t
__future__RtdjangoRtdjango.confRtdjango.contribRtdjango.contrib.auth.decoratorsRRtdjango.contrib.commentsRt#django.contrib.comments.views.utilsRRtdjango.shortcutsR	R
tdjango.views.decorators.csrfRtNoneRRRRRRt	flag_donetdelete_donetapprove_done(((sJ/tmp/pip-install-XxeQeY/django/django/contrib/comments/views/moderation.pyt<module>s:							

https://t.me/AnonymousX5 - 2025