Commit graph

233 commits

Author SHA1 Message Date
Benoît Bryon
af67e0036f Back to development: 1.10 2016-03-15 12:18:35 +01:00
Benoît Bryon
2862d2f24e Preparing release 1.9 2016-03-15 12:16:24 +01:00
Benoît Bryon
0c445389f7 HTTPFile has 'content_type' property. It makes HTTPDownloadView proxy Content-Type header. Closes #116 2016-03-15 12:13:31 +01:00
Benoît Bryon
e37612f2b9 Make sure HTTPDownloadView proxies Content-Type header. Refs #116 2016-03-14 17:42:30 +01:00
Benoît Bryon
56214264f1 HTTPFile has 'content_type' property. Allows HTTPDownloadView to proxy Content-Type header. Refs #116 2016-03-14 17:05:32 +01:00
Benoît Bryon
18fd9abcc8 Introduced support of Python-3.5 and Django-1.9. Refs #112, refs #113. 2016-03-14 16:59:30 +01:00
Benoît Bryon
5fecce8017 Improved support of Python-3.5 and Django-1.9. Refs #112, refs #113. 2016-03-14 16:24:16 +01:00
Benoît Bryon
ec969efa7e Improved support of Python-3.5 and Django-1.9. Refs #112, refs #113. 2016-03-14 15:54:56 +01:00
Benoît Bryon
08031dab21 Improved support of Python-3.5 and Django-1.9. Refs #112, refs #113. 2016-03-14 15:40:13 +01:00
Benoît Bryon
a3203f2298 Added Python-3.5 and Django-1.9 to test suites. Refs #112, refs #113. 2016-03-14 15:22:48 +01:00
Benoît Bryon
1ec890fb20 Back to development: 1.9 2015-07-20 18:55:22 +02:00
Benoît
ae54019a27 Preparing release 1.8 2015-07-20 18:53:00 +02:00
Benoît Bryon
c18e57037b Pass numeric timestamp to Django's was_modified_since() (was receiving datetime). Thanks @benesch and @zerc. 2015-07-20 18:43:46 +02:00
Benoît Bryon
3a3d3ebb9f Refs #104 - Assert timestamp is passed to was_modified_since(). 2015-07-20 18:28:28 +02:00
Benoît Bryon
bdf8e6e368 Psycho-rebased work of @benesch and @zerc on top of master. 2015-07-20 18:14:08 +02:00
Benoît Bryon
150e50653f Refs #104 - Merged work of @benesch and @zerc. 2015-07-20 18:12:44 +02:00
Benoît Bryon
ea033b8eb2 PathDownloadView.get_file() makes a single call to PathDownloadView.get_path() (was doing it twice). Thanks @rleonhardt. Closes #103 2015-07-20 17:43:18 +02:00
zero13cool
bf7b0f23fd Refs #104 - Convert datetime to unix timestamp 2015-07-16 22:00:27 +03:00
René Leonhardt
5e4ae2fdc9 Changed assertCalledOnceWith() to assert_called_once_with()
When I change assertCalledOnceWith() to assert_called_once_with(), make test succeeds but shows another failure:
```
AssertionError: Expected call: mock(sentinel.size, sentinel.modified_time)
Actual call: mock(sentinel.since, sentinel.modified_time, sentinel.size)
```
After changing the call accordingly, all 59 tests succeed.
2015-07-14 14:53:14 +02:00
René Leonhardt
75b51ce214 Avoid calling get_path() twice inside get_file
Overridden PathDownloadView.get_path() may contain database lookups and logging which should not be called twice if not necessary, as it was in my case.
Because the acquired filename does not change inside get_file(), I replaced the duplicate call.
2015-07-14 12:03:52 +02:00
Benoît Bryon
142d8de7fa Declared project as production/stable. 2015-06-24 14:10:33 +02:00
Benoît
2596bc60e1 Back to development: 1.8 2015-06-13 01:46:40 +02:00
Benoît
652e5de854 Preparing release 1.7 2015-06-13 01:45:31 +02:00
Benoît Bryon
cfc57c19f0 Run demo with 'make demo runserver' (was broken). Closes #92 2015-06-13 01:39:05 +02:00
Benoît Bryon
0c282664ca Filenames with commas are now supported. In download responses, filename is now surrounded by double quotes. Closes #87 2015-06-13 01:37:33 +02:00
Benoît Bryon
5fa0a6caea Psycho-rebased branch 87-double-quoted-filename on top of master 2015-06-13 00:57:44 +02:00
Benoît Bryon
8a0883d461 Refs #92 - 'make demo' installs demo, 'make runserver' runs demo server. 2015-06-13 00:56:57 +02:00
Benoît Bryon
211fd5461b Refreshed development environment. Added tests around Python 3.4 and Django 1.8. Fixed content proxied by HTTPFile. Closes #97, closes #98, closes #99. 2015-06-13 00:39:58 +02:00
Benoît Bryon
2d04d30ba4 Refs #97 - Code style. 2015-06-12 20:51:51 +02:00
Benoît Bryon
6f9a79c1df Refs #98 - Assert tests follow PEP8. 2015-06-12 20:39:00 +02:00
Benoît Bryon
62c0c01304 Refs #98 - Workaround travis and test requirements. 2015-06-12 20:36:17 +02:00
Benoît Bryon
0160c00df1 Refs #98 - Workaround documentation. 2015-06-12 19:30:57 +02:00
Benoît Bryon
ec96afda11 Refs #98 - Added __init__ script in tests/ folder. 2015-06-12 16:52:33 +02:00
Benoît Bryon
d122c68455 Refs #97 - Splitted StringIteratorIO into TextIteratorIO and BytesIteratorIO. StringIteratorIO remains for backward compatibility. 2015-06-12 16:47:46 +02:00
Benoît Bryon
c54131db6e Refs #98 - Moved tests outside django-downloadview package, i.e. in tests/ folder at project root. 2015-06-12 15:42:50 +02:00
Benoît Bryon
618aa78455 Merge branch '97-httpfile-raw' into 98-dev-refresh 2015-06-12 11:16:14 +02:00
Benoît Bryon
f04a4b4cd4 Refs #98 - Starting refresh of development environment. Work in progress. 2015-06-12 11:15:39 +02:00
Benoît Bryon
047745f084 Refs #97 - HTTPFile proxies decoded file wrapper (was undecoded urllib3 file wrapper). 2015-06-11 17:02:18 +02:00
Rémy HUBSCHER
b2fa7754cc Merge pull request #90 from thedrow/patch-1
Fixed broken links.
2015-06-01 09:05:20 +01:00
Rémy HUBSCHER
6a3bb9affb Merge pull request #93 from benoitbryon/91-demo-data-folder
Makefile creates 'var' folder to store database
2015-06-01 10:04:54 +02:00
Nikhil Benesch
e685f9909d properly compute modified since with StaticFile wrapper 2015-05-29 16:16:05 -04:00
Nikhil Benesch
9b87f181bf add failing test cases for StaticFile IF_MODIFIED_SINCE handling 2015-05-29 16:15:19 -04:00
Benoît Bryon
ca9c9b3caf Refs #91 - Makefile creates 'var' folder to store database (was failing to create sqlite file). 2015-01-23 14:50:08 +01:00
Omer Katz
8a6b04c5a4 Fixed broken link. 2014-10-28 17:14:46 +02:00
Omer Katz
3717696dda Fixed broken link. 2014-10-28 17:14:08 +02:00
CJ
6ad1ae9704 refs #87 github url changed to githubsecurecontent
Hoping this fixes the error in 'simple_url' serves 'hello-world.txt' from Github
2014-06-06 13:37:11 -04:00
CJ
7d30adb802 refs #87 Spelling issue on Hello 2014-06-06 12:36:18 -04:00
CJ
def8df90ee refs #87 resaving hello-world.txt
Test is failing on loading this file with:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

Not really sure what the issue is, seeing if this will fix it...
2014-06-06 12:30:27 -04:00
CJ
fbb0f30f2a refs #87 quotes for ascii filename to fix doctest 2014-06-06 12:07:12 -04:00
CJ
3b124f0cdb refs #87 quotes for ascii filename to fix doctest 2014-06-06 11:59:50 -04:00