Commit graph

30 commits

Author SHA1 Message Date
Benoît Bryon
d587c515f0 Refs #74 - Switched to tox as test-environment manager. Added flake8 to the test suite. Dropped python 2.6 tests. Makefile no longer creates a virtualenv. 2014-02-10 01:27:14 +01:00
Benoît Bryon
2962b84135 Refs #74 - Removing zc.buildout for DEV/TEST environments. WORK IN PROGRESS. 2014-01-24 15:26:16 +01:00
Benoît Bryon
e33a8165ef Refs #2 - Introduced support of Lighttpd's X-Sendfile (mostly copied from django_downloadview.apache). 2013-11-28 23:02:40 +01:00
Benoît Bryon
8b44724c90 Refs #36 - Introduced support of Apache X-Sendfile. 2013-11-26 09:30:19 +01:00
Benoît Bryon
c141f027de Refs #60 - VirtualFile uses force_bytes(). Removed (wrong) patch of File.__iter__(). 2013-11-08 09:56:26 +01:00
Benoît Bryon
e9d9b3dfaa Refs #25 - Introduced SmartDownloadMiddleware: makes it possible to setup several rules given a single optimization backend. 2013-11-07 00:09:30 +01:00
Benoît Bryon
2c1ad3c730 ObjectDownloadView now inherits from SingleObjectMixin and BaseDownloadView. Added example for setup_view() in documentation. 2013-11-05 11:44:48 +01:00
Benoît Bryon
1790094422 Standardized demo's packaging. 2013-10-28 21:07:42 +01:00
Benoît Bryon
874f3b9b54 Refs #25, refs #39, refs #40, refs #42 - Big refactoring in documentation and demo: narrative documentation uses examples from demo project. 2013-10-28 16:58:18 +01:00
Benoît Bryon
588b1b0a6e Introduced DownloadDispatcherMiddleware and settings.DOWNLOADVIEW_MIDDLEWARES. Deprecated most options for former global XAccelRedirectMiddleware. Splitted nginx module into a package. Introduced BaseDownloadMiddleware. 2013-10-04 18:11:16 +02:00
Benoît Bryon
e8266615ed Refs #32 - Respect 'attachment' argument in X-Accel optimization. 2013-05-06 16:50:47 +02:00
Benoît Bryon
c2c152ec49 Fixed demo's 'http_download_hello_world' view: using 'basename' and not 'name'. 2013-04-11 11:39:08 +02:00
Benoît Bryon
a770727b5e Encoded data written to StringIO. 2013-04-08 16:36:53 +02:00
Benoît Bryon
3b65324a06 Refs #29 - Introduced HTTPFile and HTTPDownloadView to create proxy to arbitrary HTTP URL. 2013-04-08 15:39:06 +02:00
Benoît Bryon
5a3ff57e23 Refs #13 - Using Django's StreamingHttpResponse. Requires Django>=1.5. Introduced django_downloadview.test.assert_download_response(). 2013-03-20 16:00:20 +01:00
Benoît Bryon
060233abc5 Refs #23 - Implemented VirtualDownloadView and VirtualFile for basic support of in-memory (StringIO) or other generated files. 2013-02-06 20:11:42 +01:00
Benoît Bryon
02f0b7aa0d Using doc comments instead of docstrings for attributes. 2013-02-06 19:07:23 +01:00
Benoît Bryon
e94054bcba Refs #23 - Implemented and tested StorageDownloadView. This StorageDownloadView is to replace an use case of former DownloadView. 2013-02-06 19:02:43 +01:00
Benoît Bryon
cc3df73905 Refs #23 - Implemented and tested PathDownloadView. This PathDownloadView is to replace an use case of former DownloadView. 2013-02-06 11:02:55 +01:00
Benoît Bryon
b8d51c12fb Minor refactoring in demo's tests. 2013-02-06 09:16:05 +01:00
Benoît Bryon
4dd718fba3 Refs #16 - Improved documentation for Nginx optimizations (references to demo project). Refs #18 - Moved temporary_media_root utility from demoproject.download.tests to django_downloadview.test. 2012-12-10 11:05:28 +01:00
Benoît Bryon
0d2d38718e Improved demo project: provided initial data and a simple homepage with some links. 2012-12-04 12:21:45 +01:00
Benoît Bryon
4f29852ddb Reviewed documentation. Preparing first public release. 2012-12-04 11:47:37 +01:00
Benoit Bryon
1f8876ba4f Refs #1 - Experimental support for Nginx X-Accel. Work in progress 2012-11-28 16:53:56 +01:00
Benoit Bryon
0ae3653d1e Clarified charset and encoding. 2012-11-19 14:41:52 +01:00
Benoit Bryon
33ad5d492e Refactored generic download views. Added storage argument to DownloadView. Renamed DownloadView's 'file' argument to 'filename'. 2012-08-28 15:47:26 +02:00
Benoit Bryon
ab75aa6e08 Fixed tests: tests use a temporary settings.MEDIA_ROOT, so files are isolated for tests. 2012-08-28 10:13:41 +02:00
Benoit Bryon
24b15e0400 Improved testing. Fixed 'make documentation'. 2012-08-27 18:27:00 +02:00
Benoit Bryon
a45c79552e Introduced ObjectDownloadView. UNSTABLE. Work in progress. 2012-08-27 17:05:24 +02:00
Benoit Bryon
536728bc0a Introduced DownloadView. Introduced demo project, used to develop and test the library. Work in progress. 2012-08-27 15:57:47 +02:00