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 :  /usr/lib64/python2.7/site-packages/django/contrib/comments/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/django/contrib/comments/views/utils.pyc
�
r�\c@s�dZddlZddlmZddlmZmZddlmZddl	m
Z
ddlmZddl
mZdd	lmZd
�Zdd�ZdS(
s3
A few bits of helper functions for comment views.
i����N(tHttpResponseRedirect(trender_to_responsetresolve_url(tRequestContext(tObjectDoesNotExist(tcomments(tis_safe_url(t	urlencodecKs�|jjd�}td|d|j��s<t|�}n|r�d|kr{|jdd�}|d}d|d}nd}d|kr�d	nd}||t|�|7}nt|�S(
s�
    Handle the "where should I go next?" part of comment views.

    The next value could be a
    ``?next=...`` GET arg or the URL of a given view (``fallback``). See
    the view modules for examples.

    Returns an ``HttpResponseRedirect``.
    tnextturlthostt#iitt?t&(tPOSTtgetRtget_hostRtrsplitRR(trequesttfallbackt
get_kwargsRttmptanchortjoiner((sE/tmp/pip-install-XxeQeY/django/django/contrib/comments/views/utils.pyt
next_redirects

sDisplay a confirmation view.cs/�fd�}tjd|�f�|_|S(sf
    Confirmation view generator for the "comment was
    posted/flagged/deleted/approved" views.
    csxd}d|jkrXy&tj�jjd|jd�}WqXttfk
rTqXXnt�i|d6dt	|��S(Ntctpktcommenttcontext_instance(
tNonetGETRt	get_modeltobjectsRRt
ValueErrorRR(RR(ttemplate(sE/tmp/pip-install-XxeQeY/django/django/contrib/comments/views/utils.pyt	confirmed.s&
s        %s

        Templates: :template:`%s``
        Context:
            comment
                The posted comment
        (ttextwraptdedentt__doc__(R#tdocR$((R#sE/tmp/pip-install-XxeQeY/django/django/contrib/comments/views/utils.pytconfirmation_view)s(R'R%tdjango.httpRtdjango.shortcutsRRtdjango.templateRtdjango.core.exceptionsRtdjango.contribRtdjango.utils.httpRt#django.utils.six.moves.urllib.parseRRR)(((sE/tmp/pip-install-XxeQeY/django/django/contrib/comments/views/utils.pyt<module>s	

https://t.me/AnonymousX5 - 2025