[damned-lies] Return a filename for dynamic po similar to the existing po files (Fixes #662882)
- From: Claude Paroz <claudep src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Return a filename for dynamic po similar to the existing po files (Fixes #662882)
- Date: Fri, 28 Oct 2011 08:55:01 +0000 (UTC)
commit 17afbb6a4a07bcc7cb6bc1b7339c5d9bb1680779
Author: Claude Paroz <claude 2xlibre net>
Date: Fri Oct 28 10:53:55 2011 +0200
Return a filename for dynamic po similar to the existing po files (Fixes #662882)
stats/views.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/stats/views.py b/stats/views.py
index 4a6c781..b4a495e 100644
--- a/stats/views.py
+++ b/stats/views.py
@@ -231,7 +231,10 @@ def dynamic_po(request, module_name, domain, branch_name, filename):
# Output the remaining part of the file untouched
dyn_content += "\n".join(lines[i+1:])
break
- return HttpResponse(dyn_content, 'text/plain')
+ response = HttpResponse(dyn_content, 'text/plain')
+ response['Content-Disposition'] = 'inline; filename=%s' % (
+ ".".join([module_name, domain, branch_name, filename]))
+ return response
def releases(request, format='html'):
active_releases = Release.objects.filter(weight__gte=0).order_by('status', '-weight', '-name')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]