def perform_flag(request, comment):
    flag, created = comments.models.CommentFlag.objects.get_or_create(
        comment = comment,
        user    = request.user,
        flag    = comments.models.CommentFlag.SUGGEST_REMOVAL
    )
    signals.comment_was_flagged.send(
        sender  = comment.__class__,
        comment = comment,
        flag    = flag,
        created = created,
        request = request,
    )
Actually perform the flagging of a comment from a request.
dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/comments/views/moderation.py/perform_flag