Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(12)  |  Call(8)  |  Derive(0)  |  Import(4)

src/d/j/django-contrib-comments-1.5/django_comments/views/moderation.py   django-contrib-comments(Download)
import django_comments
from django_comments import signals
from django_comments.views.utils import next_redirect, confirmation_view
 
@csrf_protect
    if request.method == 'POST':
        perform_flag(request, comment)
        return next_redirect(request, fallback=next or 'comments-flag-done',
            c=comment.pk)
 
        # Flag the comment as deleted instead of actually deleting it.
        perform_delete(request, comment)
        return next_redirect(request, fallback=next or 'comments-delete-done',
            c=comment.pk)
 
        # Flag the comment as approved.
        perform_approve(request, comment)
        return next_redirect(request, fallback=next or 'comments-approve-done',
            c=comment.pk)
 

src/d/j/django-contrib-comments-HEAD/django_comments/views/moderation.py   django-contrib-comments(Download)
import django_comments
from django_comments import signals
from django_comments.views.utils import next_redirect, confirmation_view
 
@csrf_protect
    if request.method == 'POST':
        perform_flag(request, comment)
        return next_redirect(request, fallback=next or 'comments-flag-done',
            c=comment.pk)
 
        # Flag the comment as deleted instead of actually deleting it.
        perform_delete(request, comment)
        return next_redirect(request, fallback=next or 'comments-delete-done',
            c=comment.pk)
 
        # Flag the comment as approved.
        perform_approve(request, comment)
        return next_redirect(request, fallback=next or 'comments-approve-done',
            c=comment.pk)
 

src/d/j/django-contrib-comments-1.5/django_comments/views/comments.py   django-contrib-comments(Download)
import django_comments
from django_comments import signals
from django_comments.views.utils import next_redirect, confirmation_view
 
class CommentPostBadRequest(http.HttpResponseBadRequest):
    )
 
    return next_redirect(request, fallback=next or 'comments-comment-done',
        c=comment._get_pk_val())
 

src/d/j/django-contrib-comments-HEAD/django_comments/views/comments.py   django-contrib-comments(Download)
import django_comments
from django_comments import signals
from django_comments.views.utils import next_redirect, confirmation_view
 
class CommentPostBadRequest(http.HttpResponseBadRequest):
    )
 
    return next_redirect(request, fallback=next or 'comments-comment-done',
        c=comment._get_pk_val())