Permalink
Browse files

removed unused views.

git-svn-id: file:///Users/brian/Backups/S3/backups/Wednesday/brian/svn/djog/trunk@47 95ab7de8-677b-4562-a266-b8acc9dd993c
  • Loading branch information...
1 parent afbcbd4 commit 354db014ebfaaad8a3e732e5796c8142412b1224 @brosner committed Oct 23, 2007
Showing with 0 additions and 31 deletions.
  1. +0 −31 djog/views.py
View
@@ -2,10 +2,6 @@
from django.core import urlresolvers
from django.contrib.comments.views.comments import post_free_comment
from django.http import HttpResponseRedirect
-from django.shortcuts import render_to_response
-from django.utils.encoding import smart_str
-
-from djog.models import *
def post_free_comment_redirect(request):
if request.POST.has_key('url'):
@@ -14,30 +10,3 @@ def post_free_comment_redirect(request):
url = urlresolvers.reverse('djog_index')
response = post_free_comment(request)
return HttpResponseRedirect(url)
-
-def EntriesByTag(request, slug):
- tag = Tag.objects.get(slug=slug)
- entries = Entry.objects.filter(tags__slug=slug)
- return render_to_response('djog/tag_list.html', {'entries': entries, 'tag': tag})
-
-def Search(request):
- if not request.GET.has_key('s'):
- return HttpResponseRedirect(urlresolvers.reverse('djog_index'))
- search = smart_str(request.GET['s'])
- all = Entry.objects.filter(Q(title__icontains=search) | Q(text__icontains=search))
-
- return render_to_response('djog/search.html', {'term': search, 'results': all})
-
-def trackback(request, id):
- if request.method != 'POST':
- return render_to_response('trackback.xml', {'error_code': 1, 'message': "Request type must be POST"}, mimetype='text/xml')
- if not request.POST.get('url'):
- return render_to_response('trackback.xml', {'error_code': 1, 'message': "URL not specified"}, mimetype='text/xml')
- tb = IncomingTrackBack()
- tb.entry_id = int(id)
- tb.title = request.POST.get('title')
- tb.excerpt = request.POST.get('excerpt')
- tb.url = request.POST.get('url')
- tb.blog = request.POST.get('blog_name')
- tb.save()
- return render_to_response('trackback.xml', {'error_code': 0}, mimetype='text/xml')

0 comments on commit 354db01

Please sign in to comment.