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, })
def items(self): return top(8)