示例#1
0
def updates(request, tags):
    try:
        count = int(request.GET.get('count'))
    except (TypeError, ValueError):
        count = 12
    return render_to_response('updates.html', {
        'items': top(count, tags),
        'count': count,
        'tags': tags,
    })
示例#2
0
 def items(self):
     return top(8)