Commit graph

244 commits

Author SHA1 Message Date
Fabre Florian
69bb9d864d Add Django 2.x targets to tox & travis scripts 2020-01-07 09:54:28 +01:00
Rémy HUBSCHER
1c829c5413 Merge pull request #140 from joehybird/master
Fix compatibility from django1.5 to django1.11 with python 2.7 and 3.x
2017-09-14 19:26:43 +07:00
Fabre Florian
9aaa069e23 Fix flake8 issue 2017-09-14 11:40:27 +02:00
Fabre Florian
5306a54222 Fix travis config. 2017-09-14 11:37:13 +02:00
Fabre Florian
ade4c06670 Fix travis config. 2017-09-14 11:15:24 +02:00
Fabre Florian
24afd546c6 Fix travis config. 2017-09-14 11:08:27 +02:00
Fabre Florian
235f95b967 Fix django 1.10 deprecation of django.conf.urls.patterns. Add django 1.11 to tox targets. Downgrade django-nose because versions >= 1.4.3 no longer supports django 1.5. 2017-09-14 10:09:59 +02:00
Rémy HUBSCHER
414c083aa3 Merge pull request #124 from adamchainz/readthedocs.io
Convert readthedocs links for their .org -> .io migration for hosted projects
2016-06-28 08:38:45 +02:00
Adam Chainz
a4cc84d758 Convert readthedocs links for their .org -> .io migration for hosted projects
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/) ‘Securing subdomains’:

> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.

Test Plan: Manually visited all the links I’ve modified.
2016-06-27 22:42:16 +01:00
Rémy HUBSCHER
6166783914 Merge pull request #119 from mbaechtold/fix-documentation-optimization-examples
Fix code examples in the optimization chapter of the documentation.
2016-05-13 13:05:13 +02:00
Martin Bächtold
e0dc0b0c41
Fix code examples in the optimization chapter of the documentation. 2016-05-06 10:15:50 +02:00
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