Commit graph

408 commits

Author SHA1 Message Date
Benoît Bryon
a6631ffb00 Merge pull request #28 from novagile/master
Refs #13 : upgrade to Django 1.5 and support for StreamingHttpResponse
2013-03-20 08:24:23 -07:00
Benoît Bryon
5c17707a8f Added support for TravisCI.org. 2013-03-20 16:22:38 +01:00
Benoît Bryon
c978f21373 Improved Makefile + some other minor improvements 2013-03-20 16:21:48 +01: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
5159adae93 Minor review of packaging. Added dependency to setuptools. 2013-02-06 20:37:50 +01:00
Benoît Bryon
c671037db0 Merge pull request #24 from novagile/23-file-wrapper
Refs #21 and closes #23 - Download view passes a file wrapper to download response.
2013-02-06 11:16:54 -08: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
58cf4bac7d Removed deprecated DownloadView. Replaced by PathDownloadView and StorageDownloadView. 2013-02-06 19:15:00 +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
5c91a53f40 Introduced narrative overview of available download views in documentation. 2013-02-06 16:18:37 +01:00
Benoît Bryon
7876cfffc7 Changed sidebars in documentation. Removed unused links at documentation index bottom. 2013-02-06 15:41:17 +01:00
Benoît Bryon
631099d173 Updated buildout configuration. Added tests around documentation with sphinxcontrib-testbuild. 2013-02-06 15:32:29 +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
562773799a Added Rémy to AUTHORS. 2013-02-06 09:12:16 +01:00
Rémy HUBSCHER
d4dfbcffbe Come back baby come back 2013-02-05 16:49:43 +01:00
Rémy HUBSCHER
f7dd4114d7 Fix error on content-type 2013-02-05 16:21:58 +01:00
Rémy HUBSCHER
f9fe4f3a2f Improve DownloadView for cStringIO file download response 2013-02-05 10:51:11 +01:00
Benoît Bryon
a012b11e97 Refs #21 and refs #23 - Download view passes a file wrapper to download response. The file wrapper encapsulates file attributes such as name, size or URL (introduced URL). 2012-12-13 19:01:50 +01:00
Benoît Bryon
3dca740615 Fixed development version number. 2012-12-10 11:43:41 +01:00
Benoît Bryon
3dad9728a1 Merge pull request #20 from benoitbryon/references
Refs #8, refs #9, refs #12 - Introduced links to alternatives
2012-12-10 02:40:22 -08:00
Benoît Bryon
ea0b267de2 Refs #8, refs #9, refs #12 - Introduced links to alteratives: django-sendfile, django-private-files, django-protected-files. 2012-12-10 11:38:04 +01:00
Benoît Bryon
dd687d148b Merge pull request #17 from novagile/16-assert-response
Closes #16 - Introduced nginx.assert_x_accel_redirect() utility function
2012-12-10 02:07:15 -08: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
78c1941b50 Refs #16 - Introduced nginx.assert_x_accel_redirect() utility function, for use in tests. 2012-12-07 17:05:28 +01:00
Benoît Bryon
9338455399 Back to development: 1.1 2012-12-04 12:58:32 +01:00
Benoît Bryon
e7cb6e884a Preparing release 1.0 2012-12-04 12:57:48 +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
Benoît Bryon
7738d1c0b6 Merge pull request #6 from benoitbryon/1-nginx
Closes #1. Introducing Nginx optimisations. Should be enough for a start.
2012-11-28 10:06:32 -08:00
Benoit Bryon
9762025d1a Refs #1 - Fixed nginx middleware. Populated documentation (examples should be moved to demo project). 2012-11-28 19:04:13 +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
66c83a8914 Introduced DownloadResponse.url. Not used yet. 2012-11-28 16:53:56 +01:00
Benoit Bryon
450d2f42bb Minor precision about deserialization in views. 2012-11-28 16:53:56 +01:00
Benoit Bryon
5a031a2011 Use **kwargs in DownloadMixin.render_to_response() 2012-11-28 16:53:56 +01:00
Benoit Bryon
e5a36a4b41 Introduced DownloadResponse.url. Not used yet. 2012-11-22 10:29:09 +01:00
Benoit Bryon
9e9ee8bfdf Minor precision about deserialization in views. 2012-11-22 10:00:36 +01:00
Benoit Bryon
343b8bea07 Use **kwargs in DownloadMixin.render_to_response() 2012-11-22 09:51:52 +01:00
Benoit Bryon
41e00d312d Refs #1 - Introduced experimental support for Nginx X-Accel. WORK IN PROGRESS. 2012-11-19 14:43:42 +01:00
Benoit Bryon
46542cdc3c Refs #3 - Introduced base decorators and middlewares. 2012-11-19 14:41:52 +01:00
Benoit Bryon
5a432dc700 Refs #3 - Introduced DownloadResponse. 2012-11-19 14:41:52 +01:00
Benoit Bryon
0ae3653d1e Clarified charset and encoding. 2012-11-19 14:41:52 +01:00
Benoit Bryon
faaa12fcb8 PEP8 on views.py 2012-11-19 14:41:52 +01:00
Benoit Bryon
434db01168 Fixed ObjectDownloadView.object access with a cache. Using client-side basename instead of server-side filename to guess the mimetype. 2012-08-30 23:12:27 +02:00
Benoit Bryon
9e4e7bfc0a Added attributes to ObjectDownloadView, so that it is possible to use a model as a cache for file metadata (size, mime-type, basename...). Added docstrings. 2012-08-29 18:06:29 +02:00
Benoit Bryon
d69b84a705 Modified the way documentation version is retrieved, so that readthedocs.org can get it. 2012-08-29 10:19:51 +02:00
Benoit Bryon
36e862d1c0 Introduced API documentation. Not complete yet, since docstrings are not verbose. 2012-08-29 10:11:08 +02: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
5a2a174b3e Reduced memory usage when serving files: return an iterator of chunks, don't load the whole file into memory. 2012-08-28 10:46:02 +02:00