[extensions-web] Make sure to parse the "true"/"false" values that we get from the request
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] Make sure to parse the "true"/"false" values that we get from the request
- Date: Sat, 19 Nov 2011 22:13:56 +0000 (UTC)
commit f78e80f24d33375461187837d820210ead0273f2
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Sat Nov 19 17:13:47 2011 -0500
Make sure to parse the "true"/"false" values that we get from the request
sweettooth/review/views.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/sweettooth/review/views.py b/sweettooth/review/views.py
index f9b73cf..fb0c8a0 100644
--- a/sweettooth/review/views.py
+++ b/sweettooth/review/views.py
@@ -15,6 +15,7 @@ from django.http import HttpResponseForbidden, Http404
from django.shortcuts import redirect, get_object_or_404
from django.template.loader import render_to_string
from django.utils.html import escape
+from django.utils import simplejson as json
from review.diffview import get_chunks_html, split_lines, NoWrapperHtmlFormatter
from review.models import CodeReview, ChangeStatusLog, get_all_reviewers
@@ -147,7 +148,7 @@ def ajax_get_file_list_view(request, obj):
old_zipfile, new_zipfile = get_zipfiles(version)
- disallow_binary = request.GET['disallow_binary']
+ disallow_binary = json.loads(request.GET['disallow_binary'])
new_filelist = set(get_filelist(new_zipfile, disallow_binary))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]