Did I find the right examples for you? yes no

All Samples(8)  |  Call(6)  |  Derive(0)  |  Import(2)

src/t/a/taverna-HEAD/blog/views.py   taverna(Download)
from taverna.forum.models import Post, PostEdit, PostVote
 
from util import rr, ExtendedPaginator, modify_rating
from django.core.paginator import Paginator
from django.core.urlresolvers import reverse
 
    if bool(int(positive)):
        modify_rating(post, 1, True)
        return {"rating": post.rating+1}
    else:
        modify_rating(post, 1, False)
        return error(request, "VOTE")
 
    modify_rating(post, 1, bool(int(positive)))
 
    if post.reply_to:

src/t/a/taverna-HEAD/forum/views.py   taverna(Download)
 
from models import *
from util import rr, modify_rating, invalidate_cache
from django import forms
from django.conf import settings
                postvote.save()
 
                modify_rating(startpost, postvote.reason.cost)
                if startpost != startpost.thread:
                    auto_remove(startpost, postvote.reason)
                    auto=True
                ).save()
                modify_rating(post, reason.cost)
    else:
        for post in Post.objects.filter(reply_to=startpost.pk):
                    auto=True
                ).save()
                modify_rating(post, reason.cost)
 
@login_required()