[Python-modules-commits] [django-downloadview] 03/07: Import django-downloadview_1.9.orig.tar.gz
Michael Fladischer
fladi at moszumanska.debian.org
Thu Mar 31 18:35:28 UTC 2016
This is an automated email from the git hooks/post-receive script.
fladi pushed a commit to branch master
in repository django-downloadview.
commit 08c6806c8570eb50db7d215fc28878bd6b1e2282
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date: Thu Mar 31 19:59:39 2016 +0200
Import django-downloadview_1.9.orig.tar.gz
---
CHANGELOG | 11 +++++++++++
PKG-INFO | 3 ++-
VERSION | 2 +-
django_downloadview.egg-info/PKG-INFO | 3 ++-
django_downloadview.egg-info/SOURCES.txt | 1 -
django_downloadview.egg-info/pbr.json | 1 -
django_downloadview/files.py | 5 +++++
django_downloadview/nginx/response.py | 5 ++---
django_downloadview/test.py | 4 ++--
setup.cfg | 2 +-
setup.py | 1 +
11 files changed, 27 insertions(+), 11 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index a5db752..b280472 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -5,6 +5,17 @@ This document describes changes between past releases. For information about
future releases, check `milestones`_ and :doc:`/about/vision`.
+1.9 (2016-03-15)
+----------------
+
+- Feature #112 - Introduced support of Django 1.9.
+
+- Feature #113 - Introduced support of Python 3.5.
+
+- Feature #116 - ``HTTPFile`` has ``content_type`` property. It makes
+ ``HTTPDownloadView`` proxy ``Content-Type`` header from remote location.
+
+
1.8 (2015-07-20)
----------------
diff --git a/PKG-INFO b/PKG-INFO
index e61fc6a..be65ee8 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: django-downloadview
-Version: 1.8
+Version: 1.9
Summary: Serve files with Django and reverse-proxies.
Home-page: https://django-downloadview.readthedocs.org/
Author: Benoît Bryon
@@ -65,3 +65,4 @@ Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
diff --git a/VERSION b/VERSION
index 6259340..2e0e38c 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.8
+1.9
diff --git a/django_downloadview.egg-info/PKG-INFO b/django_downloadview.egg-info/PKG-INFO
index e61fc6a..be65ee8 100644
--- a/django_downloadview.egg-info/PKG-INFO
+++ b/django_downloadview.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: django-downloadview
-Version: 1.8
+Version: 1.9
Summary: Serve files with Django and reverse-proxies.
Home-page: https://django-downloadview.readthedocs.org/
Author: Benoît Bryon
@@ -65,3 +65,4 @@ Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
+Classifier: Programming Language :: Python :: 3.5
diff --git a/django_downloadview.egg-info/SOURCES.txt b/django_downloadview.egg-info/SOURCES.txt
index 56d9021..8502537 100644
--- a/django_downloadview.egg-info/SOURCES.txt
+++ b/django_downloadview.egg-info/SOURCES.txt
@@ -22,7 +22,6 @@ django_downloadview.egg-info/PKG-INFO
django_downloadview.egg-info/SOURCES.txt
django_downloadview.egg-info/dependency_links.txt
django_downloadview.egg-info/not-zip-safe
-django_downloadview.egg-info/pbr.json
django_downloadview.egg-info/requires.txt
django_downloadview.egg-info/top_level.txt
django_downloadview/apache/__init__.py
diff --git a/django_downloadview.egg-info/pbr.json b/django_downloadview.egg-info/pbr.json
deleted file mode 100644
index fbac6f8..0000000
--- a/django_downloadview.egg-info/pbr.json
+++ /dev/null
@@ -1 +0,0 @@
-{"is_release": false, "git_version": "bdf8e6e"}
\ No newline at end of file
diff --git a/django_downloadview/files.py b/django_downloadview/files.py
index a83f31b..c6b4e0d 100644
--- a/django_downloadview/files.py
+++ b/django_downloadview/files.py
@@ -256,3 +256,8 @@ class HTTPFile(File):
"""
return self.request.headers['Content-Length']
+
+ @property
+ def content_type(self):
+ """Return content type of the file (from original response)."""
+ return self.request.headers['Content-Type']
diff --git a/django_downloadview/nginx/response.py b/django_downloadview/nginx/response.py
index 727db2c..4bbf0d4 100644
--- a/django_downloadview/nginx/response.py
+++ b/django_downloadview/nginx/response.py
@@ -29,6 +29,5 @@ class XAccelRedirectResponse(ProxiedDownloadResponse):
elif expires is not None: # We explicitely want it off.
self['X-Accel-Expires'] = 'off'
if limit_rate is not None:
- self['X-Accel-Limit-Rate'] = (limit_rate
- and '%d' % limit_rate
- or 'off')
+ self['X-Accel-Limit-Rate'] = \
+ limit_rate and '%d' % limit_rate or 'off'
diff --git a/django_downloadview/test.py b/django_downloadview/test.py
index 627adb5..08f6ce9 100644
--- a/django_downloadview/test.py
+++ b/django_downloadview/test.py
@@ -150,8 +150,8 @@ class DownloadResponseValidator(object):
'attachment;' in response['Content-Disposition'])
else:
test_case.assertTrue(
- 'Content-Disposition' not in response
- or 'attachment;' not in response['Content-Disposition'])
+ 'Content-Disposition' not in response or
+ 'attachment;' not in response['Content-Disposition'])
def assert_download_response(test_case, response, **assertions):
diff --git a/setup.cfg b/setup.cfg
index 861a9f5..00bb0ae 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,5 @@
[egg_info]
-tag_build =
tag_date = 0
tag_svn_revision = 0
+tag_build =
diff --git a/setup.py b/setup.py
index fdc3f3f..f290828 100644
--- a/setup.py
+++ b/setup.py
@@ -42,6 +42,7 @@ CLASSIFIERS = [
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
+ 'Programming Language :: Python :: 3.5',
]
KEYWORDS = ['file',
'stream',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/django-downloadview.git
More information about the Python-modules-commits
mailing list