forked from jazzband/django-downloadview
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCHANGELOG
156 lines (97 loc) · 4.95 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
Changelog
=========
This document describes changes between past releases. For information about
future releases, check `milestones`_ and :doc:`/about/vision`.
1.6 (unreleased)
----------------
- Feature #74: the Makefile in project's repository no longer creates a
virtualenv. Developers setup the environment as they like, i.e. using
virtualenv, virtualenvwrapper or whatever. Tests are run with tox.
1.5 (2013-11-29)
----------------
X-Sendfile support and helpers to migrate for `django-sendfile`.
- Feature #2 - Introduced support of Lighttpd's x-Sendfile.
- Feature #36 - Introduced support of Apache's mod_xsendfile.
- Feature #41 - ``django_downloadview.sendfile`` is a port of
`django-sendfile`'s ``sendfile`` function. The documentation contains notes
about migrating from `django-sendfile` to `django-downloadview`.
1.4 (2013-11-24)
----------------
Bugfixes and documentation features.
- Bugfix #43 - ``ObjectDownloadView`` returns HTTP 404 if model instance's file
field is empty (was HTTP 500).
- Bugfix #7 - Special characters in file names (``Content-Disposition`` header)
are urlencoded. An US-ASCII fallback is also provided.
- Feature #10 - `django-downloadview` is registered on djangopackages.com.
- Feature #65 - INSTALL documentation shows "known good set" (KGS) of versions,
i.e. versions that have been used in test environment.
1.3 (2013-11-08)
----------------
Big refactoring around middleware configuration, API readability and
documentation.
- Bugfix #57 - ``PathDownloadView`` opens files in binary mode (was text mode).
- Bugfix #48 - Fixed ``basename`` assertion in ``assert_download_response``:
checks ``Content-Disposition`` header.
- Bugfix #49 - Fixed ``content`` assertion in ``assert_download_response``:
checks only response's ``streaming_content`` attribute.
- Bugfix #60 - ``VirtualFile.__iter__`` uses ``force_bytes()`` to support both
"text-mode" and "binary-mode" content.
See https://code.djangoproject.com/ticket/21321
- Feature #50 - Introduced ``django_downloadview.DownloadDispatcherMiddleware``
that iterates over a list of configurable download middlewares. Allows to
plug several download middlewares with different configurations.
This middleware is mostly dedicated to internal usage. It is used by
``SmartDownloadMiddleware`` described below.
- Feature #42 - Documentation shows how to stream generated content (yield).
Introduced ``django_downloadview.StringIteratorIO``.
- Refactoring #51 - Dropped support of Python 2.6
- Refactoring #25 - Introduced ``django_downloadview.SmartDownloadMiddleware``
which allows to setup multiple optimization rules for one backend.
Deprecates the following settings related to previous single-and-global
middleware:
* ``NGINX_DOWNLOAD_MIDDLEWARE_MEDIA_ROOT``
* ``NGINX_DOWNLOAD_MIDDLEWARE_MEDIA_URL``
* ``NGINX_DOWNLOAD_MIDDLEWARE_EXPIRES``
* ``NGINX_DOWNLOAD_MIDDLEWARE_WITH_BUFFERING``
* ``NGINX_DOWNLOAD_MIDDLEWARE_LIMIT_RATE``
- Refactoring #52 - ObjectDownloadView now inherits from SingleObjectMixin and
BaseDownloadView (was DownloadMixin and BaseDetailView).
Simplified DownloadMixin.render_to_response() signature.
- Refactoring #40 - Documentation includes examples from demo project.
- Refactoring #39 - Documentation focuses on usage, rather than API. Improved
narrative documentation.
- Refactoring #53 - Added base classes in ``django_downloadview.middlewares``,
such as ``ProxiedDownloadMiddleware``.
- Refactoring #54 - Expose most Python API directly in `django_downloadview`
package. Simplifies ``import`` statements in client applications.
Splitted nginx module in a package.
- Added unit tests, improved code coverage.
1.2 (2013-05-28)
----------------
Bugfixes and documentation improvements.
- Bugfix #26 - Prevented computation of virtual file's size, unless the file
wrapper implements was_modified_since() method.
- Bugfix #34 - Improved support of files that do not implement modification
time.
- Bugfix #35 - Fixed README conversion from reStructuredText to HTML (PyPI).
1.1 (2013-04-11)
----------------
Various improvements.
Contains **backward incompatible changes.**
- Added HTTPDownloadView to proxy to arbitrary URL.
- Added VirtualDownloadView to support files living in memory.
- Using StreamingHttpResponse introduced with Django 1.5. Makes Django 1.5 a
requirement!
- Added ``django_downloadview.test.assert_download_response`` utility.
- Download views and response now use file wrappers. Most logic around file
attributes, formerly in views, moved to wrappers.
- Replaced DownloadView by PathDownloadView and StorageDownloadView. Use the
right one depending on the use case.
1.0 (2012-12-04)
----------------
- Introduced optimizations for Nginx X-Accel: a middleware and a decorator
- Introduced generic views: DownloadView and ObjectDownloadView
- Initialized project
.. rubric:: Notes & references
.. target-notes::
.. _`milestones`: https://github.com/benoitbryon/django-downloadview/issues/milestones