Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't mess with stderr | Filipp Lepalaan | 2017-01-27 | 1 | -7/+0 |
| | |||||
* | Keep the ignore_404 flag in env | Filipp Lepalaan | 2017-01-27 | 1 | -6/+9 |
| | | | | To match behaviour in utils.py | ||||
* | Make ContentNotFoundError optional | Filipp Lepalaan | 2017-01-27 | 3 | -45/+89 |
| | |||||
* | Bump version from 3.0.0 to 3.1.0v3.1.0 | Kevin Etienne | 2016-08-31 | 1 | -1/+1 |
| | |||||
* | Fix typo in comment. | Brian Buck | 2016-08-24 | 1 | -1/+1 |
| | |||||
* | Use the built-in Django tags for getting static and other media. | Brian Buck | 2016-08-24 | 1 | -2/+3 |
| | |||||
* | Configure settings in `tests/run.py` for Django 1.10+ | Brian Buck | 2016-08-24 | 1 | -0/+9 |
| | |||||
* | Remove kwarg `current_app=None`. It does not appear to do anything and ↵ | Brian Buck | 2016-08-10 | 1 | -1/+0 |
| | | | | breaks on Django 1.10 | ||||
* | Test rendered file deletion or persistence for both debug options. | Josh | 2016-03-03 | 1 | -5/+22 |
| | |||||
* | Add test for temporary file is closed/deleted. | Josh | 2016-03-02 | 1 | -1/+25 |
| | |||||
* | Pass filename as string instead of a list. Modify comment to explain. | Josh | 2016-03-02 | 1 | -3/+3 |
| | |||||
* | Remove extraneous try/except. Revert test run script changes, but set ↵ | Josh | 2016-02-26 | 2 | -40/+24 |
| | | | | DEBUG=False. | ||||
* | Fix premature file delete on DEBUG=False. Modify test runner to check both ↵ | Josh | 2016-02-26 | 2 | -42/+64 |
| | | | | DEBUG options. | ||||
* | Refactor to better support multiple pages. | Josh | 2016-02-25 | 1 | -34/+47 |
| | |||||
* | Merge pull request #99 from pauricthelodger/bytes-error | Max Peterson | 2016-02-19 | 2 | -4/+18 |
|\ | | | | | Fix unidecode bytes error on python2 | ||||
| * | Fix py26 bug and copypasta error | Padraic Harley | 2016-01-29 | 1 | -2/+2 |
| | | | | | | | | Python 2.6 doesn't allow empty format arguments: ``{}`` must be ``{0}``. Also second test is ``inline`` rather than ``attachment``. | ||||
| * | Assert once but get the filename from the ImportError | Padraic Harley | 2016-01-29 | 1 | -8/+8 |
| | | | | | | It was pointed out that instead setting the filename from the ``except/else`` makes what's being tested much clearer. | ||||
| * | Fix unidecode bytes error on python2 | Padraic Harley | 2015-12-18 | 2 | -6/+20 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `bytes` takes no additional args in python2 unlike it's taking an encoding in python3. Unidecode returns a unicode string in python3 and a bytestring in python2 which, I believe, was the main cause of error #71. Now, regardless of whether unidecode is included, all strings passing through http_quote will be encoded to ascii which should fix both issues. Also included is a fix for a failing test when unidecode is used. Unidecode's `_unidecode` function ignores characters greater than 0xefff, which '\xe2\x99\xa5' (the heart symbol) is. This caused users with unidecode to fail '.pdf' was produced rather than the expected '?.pdf'. | ||||
* | | Remove dependency on Django template engine | Ryan Kaskel | 2016-02-17 | 3 | -10/+24 |
|/ | |||||
* | Release v3.0.0v3.0.0 | Ian Foote | 2015-12-03 | 1 | -1/+1 |
| | |||||
* | Update CHANGELOG and version.v2.1.0 | Max Peterson | 2015-12-01 | 1 | -1/+1 |
| | |||||
* | Merge pull request #95 from johnraz/extract-logic | Max Peterson | 2015-12-01 | 3 | -100/+109 |
|\ | | | | | Extract logic from views | ||||
| * | Extracted logic from views - fixed tests. | Jonathan Liuti | 2015-12-01 | 3 | -100/+109 |
| | | | | | | | | | | | | | | | | | | | | | | The logic was coupled with the views which made things difficult to reuse if you wanted to use the pdf generation somehwere else than in a view. With this patch, the logic has been moved to `utils.py` and should be more easy to reuse. Tests have been adapted and made compatible with django > 1.7 | ||||
* | | Merge pull request #72 from ghost/master | Max Peterson | 2015-12-01 | 1 | -1/+1 |
|\ \ | | | | | | | fix: Problem with filename | ||||
| * | | fix #71 | Daniel Gatis Carrazzoni | 2015-01-05 | 1 | -1/+1 |
| | | | | | | | | | fix https://github.com/incuna/django-wkhtmltopdf/issues/71 | ||||
* | | | Merge pull request #97 from powderflask/master | Max Peterson | 2015-12-01 | 1 | -1/+2 |
|\ \ \ | |_|/ |/| | | Add catch IOError for fileno() call | ||||
| * | | Update utils.py | Joseph | 2015-11-26 | 1 | -1/+1 |
| | | | |||||
| * | | Update utils.py | Joseph | 2015-11-26 | 1 | -1/+2 |
| | | | |||||
* | | | Enable tests to run with Django >= 1.7 and silence warnings | Tim Bell | 2015-10-21 | 1 | -0/+12 |
|/ / | |||||
* | | Bump versionv2.0.3 | James Turnbull | 2015-07-31 | 1 | -1/+1 |
| | | | | | | | | Release 2.0.3 | ||||
* | | Merge pull request #85 from powderflask/master | James Turnbull | 2015-07-31 | 1 | -2/+7 |
|\ \ | | | | | | | Skip absolute path substitution where STATIC or MEDIA URL are empty or None | ||||
| * | | Patch python3 / mod_wsgi incompatibility on sys.stderrr.fileno() call | Joseph | 2015-07-28 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | Root cause of this issue is in python3 / mod_wsgi. See: https://github.com/GrahamDumpleton/mod_wsgi/issues/85 This patch detects if there is something screwy with fileno() and simply skips setting stderr if there is to avoid the AttributeError that occurs otherwise. Pull https://github.com/incuna/django-wkhtmltopdf/pull/40 fixed this same issue when it arose for python 2.7, but the nature of the issue seems to have shifted, making it trickier to detect that the fileno() method cannot be called. | ||||
| * | | Skip absolute path substitution where STATIC or MEDIA URL is not set | Joseph | 2015-07-16 | 1 | -1/+1 |
| |/ | | | | | | | STATIC_URL or MEDIA_URL settings default to '' and None These default values cause the url match and replace algorithm to insert the *_ROOT setting in EVERY quoted string!! | ||||
* / | WKHTMLTOPDF_CMD is properly split by the shlex module split() which properly ↵ | Brantley Harris | 2015-06-22 | 1 | -1/+2 |
|/ | | | | accounts for quotes and escapes. | ||||
* | Change the wkhtmltopdf url | Daniel Duong | 2014-10-27 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of github.com:incuna/django-wkhtmltopdf | Matt Lenc | 2014-09-01 | 2 | -10/+40 |
|\ | |||||
| * | Rely only smart_text once django 1.4 also supports it. | Michel Sabchuk | 2014-09-01 | 1 | -5/+1 |
| | | | | | | | | | | As well pointed by @mattack108, django 1.4 also haves smart_text. We don't have to do that import. | ||||
| * | Being more explicit about the reason for smart_unicode. | Michel Sabchuk | 2014-09-01 | 1 | -0/+1 |
| | | |||||
| * | Makes tests.py lines 80 columns max. | Michel Sabchuk | 2014-09-01 | 1 | -4/+10 |
| | | |||||
| * | Replace smart_str with smart_text/unicode for py2.x compat. | Michel Sabchuk | 2014-09-01 | 1 | -2/+5 |
| | | |||||
| * | Makes unicode content views testing fails too. | Michel Sabchuk | 2014-09-01 | 1 | -5/+18 |
| | | | | | | | | | | | | The view didn't define any title in context and the templates itself doen't have unicode content. I forced it making a view with a unicode title in context. | ||||
| * | Add failing test of unicode content. | Michel Sabchuk | 2014-09-01 | 1 | -0/+11 |
| | | |||||
* | | Bump to v2.0.2v2.0.2 | Matt Lenc | 2014-09-01 | 1 | -1/+1 |
|/ | |||||
* | Bump to 2.0.1v2.0.1 | Matt Lenc | 2014-07-03 | 1 | -1/+1 |
| | |||||
* | Aligned test to code update. | Paolo Melchiorre | 2014-07-03 | 1 | -4/+1 |
| | |||||
* | Removed mimetype from response for Django 1.7 compatibility. See ↵ | Paolo Melchiorre | 2014-07-02 | 1 | -4/+2 |
| | | | | https://docs.djangoproject.com/en/dev/internals/deprecation/#deprecation-removed-in-1-7 | ||||
* | Bring back the test assert for title in content | Matt Lenc | 2014-06-19 | 2 | -3/+5 |
| | |||||
* | First try py3k then fall back to python2 | Matt Lenc | 2014-06-18 | 2 | -6/+6 |
| | |||||
* | colour-runner dependency doesn't work on py2.6 | Matt Lenc | 2014-06-18 | 1 | -6/+1 |
| | | | | DAMN IT | ||||
* | [ci skip] Bump to 2.0.0 | Matt Lenc | 2014-06-18 | 1 | -1/+1 |
| |