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
=== modified file 'license_protected_downloads/views.py'
--- license_protected_downloads/views.py 2012-10-22 17:00:23 +0000
+++ license_protected_downloads/views.py 2012-10-25 13:10:32 +0000
@@ -457,13 +457,10 @@
457457
458def get_textile_files(request):458def get_textile_files(request):
459459
460 if request.is_ajax():460 result = test_path(request.GET.get("path"))
461 result = test_path(request.GET.get("path"))461 if not result:
462 if not result:462 raise Http404
463 raise Http404463
464464 path = result[1]
465 path = result[1]465
466466 return HttpResponse(json.dumps(RenderTextFiles.find_and_render(path)))
467 return HttpResponse(json.dumps(RenderTextFiles.find_and_render(path)))
468 else:
469 raise NotImplementedError

Subscribers

People subscribed via source and target branches