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
CJ
d7073be658
refs #87 assert_basename test failing
...
Added quotes to assert_basename test.
2014-06-06 11:49:30 -04:00
CJ
616c822b6c
refs #87 Quotes around ascii filename, not utf-8
...
Updated the test to go with my change.
2014-06-06 10:37:54 -04:00
CJ
77166d2969
refs #87 Quotes around ascii filename, not utf-8
2014-06-06 10:37:04 -04:00
CJ
1407c0cc4e
Tests updated for double quotes around filename
2014-06-06 09:58:37 -04:00
CJ
7b2d8215e6
Filename surrounded by double quotes.
...
Chrome will give a Duplicate Header error if a file name has a comma in it, and the file name is not surrounded by double quotes.
2014-06-06 09:55:20 -04:00
Benoît Bryon
5c262dfa52
Fixed compliance to latest flake8.
2014-03-31 16:53:17 +02:00
Benoît Bryon
5c92f5ac87
Fixed typo in README.
2014-03-31 16:42:35 +02:00
Benoît Bryon
df6c52b571
Back to development: 1.7
2014-03-03 14:44:17 +01:00
Benoît Bryon
7aca2833bd
Preparing release 1.6
2014-03-03 14:43:28 +01:00
Benoît Bryon
abd6d5daff
Reviewed Makefile, development environment and contributor guide.
2014-03-03 14:38:33 +01:00