Merge lp:~stevanr/linaro-license-protection/bug-1071153 into lp:~linaro-automation/linaro-license-protection/trunk

Proposed by Stevan Radaković
Status: Merged
Approved by: Stevan Radaković
Approved revision: 147
Merged at revision: 147
Proposed branch: lp:~stevanr/linaro-license-protection/bug-1071153
Merge into: lp:~linaro-automation/linaro-license-protection/trunk
Diff against target: 24 lines (+7/-10)
1 file modified
license_protected_downloads/views.py (+7/-10)
To merge this branch: bzr merge lp:~stevanr/linaro-license-protection/bug-1071153
Reviewer Review Type Date Requested Status
Georgy Redkozubov Approve
Данило Шеган Pending
Review via email: mp+131400@code.launchpad.net

Description of the change

Need to remove is_ajax check because we will be calling this api method server side.

To post a comment you must log in.
Revision history for this message
Georgy Redkozubov (gesha) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'license_protected_downloads/views.py'
2--- license_protected_downloads/views.py 2012-10-22 17:00:23 +0000
3+++ license_protected_downloads/views.py 2012-10-25 13:10:32 +0000
4@@ -457,13 +457,10 @@
5
6 def get_textile_files(request):
7
8- if request.is_ajax():
9- result = test_path(request.GET.get("path"))
10- if not result:
11- raise Http404
12-
13- path = result[1]
14-
15- return HttpResponse(json.dumps(RenderTextFiles.find_and_render(path)))
16- else:
17- raise NotImplementedError
18+ result = test_path(request.GET.get("path"))
19+ if not result:
20+ raise Http404
21+
22+ path = result[1]
23+
24+ return HttpResponse(json.dumps(RenderTextFiles.find_and_render(path)))

Subscribers

People subscribed via source and target branches