summaryrefslogtreecommitdiffstats
path: root/forum/views/commands.py
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-06-03 01:44:36 -0700
committerfadeev <fadeev@bacchus.bio.uci.edu>2010-06-03 01:45:30 -0700
commit02247d157b3da4d0711b8858bf758aefdf64c04d (patch)
treea3231ac1392bc815bdd75a1e2d0ed21fa94fbe4d /forum/views/commands.py
parent5dfebd5164518572b9f1c9822990ee476854304d (diff)
downloadaskbot-02247d157b3da4d0711b8858bf758aefdf64c04d.tar.gz
askbot-02247d157b3da4d0711b8858bf758aefdf64c04d.tar.bz2
askbot-02247d157b3da4d0711b8858bf758aefdf64c04d.zip
general debugging, still may be broken
Diffstat (limited to 'forum/views/commands.py')
-rw-r--r--forum/views/commands.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/forum/views/commands.py b/forum/views/commands.py
index 4746f71d..5de693b5 100644
--- a/forum/views/commands.py
+++ b/forum/views/commands.py
@@ -4,6 +4,7 @@ from django.conf import settings
from forum.conf import settings as forum_settings
from django.utils import simplejson
from django.http import HttpResponse, HttpResponseRedirect
+from django.http import HttpResponseForbidden
from django.shortcuts import get_object_or_404, render_to_response
from django.utils.translation import ugettext as _
from django.template import RequestContext
@@ -276,7 +277,9 @@ def ajax_toggle_ignored_questions(request):#ajax tagging and tag-filtering syste
request.user.save()
@ajax_method
-def ajax_command(request):#refactor? view processing ajax commands - note "vote" and view others do it too
+def ajax_command(request):
+ """view processing ajax commands - note "vote" and view others do it too
+ """
if 'command' not in request.POST:
return HttpResponseForbidden(mimetype="application/json")
if request.POST['command'] == 'toggle-ignored-questions':