aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix py26 bug and copypasta errorPadraic Harley2016-01-291-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 ImportErrorPadraic Harley2016-01-291-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 python2Padraic Harley2015-12-182-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'.
* Release v3.0.0v3.0.0Ian Foote2015-12-031-1/+1
|
* Merge pull request #98 from incuna/v3Ian Foote2015-12-031-3/+10
|\ | | | | Update changelog for v3.0.0 release
| * Update changelog for v3.0.0 releaseIan Foote2015-12-031-3/+10
|/
* Update CHANGELOG and version.v2.1.0Max Peterson2015-12-012-1/+11
|
* Merge pull request #95 from johnraz/extract-logicMax Peterson2015-12-014-100/+116
|\ | | | | Extract logic from views
| * Extracted logic from views - fixed tests.Jonathan Liuti2015-12-014-100/+116
| | | | | | | | | | | | | | | | | | | | | | 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/masterMax Peterson2015-12-011-1/+1
|\ \ | | | | | | fix: Problem with filename
| * | fix #71Daniel Gatis Carrazzoni2015-01-051-1/+1
| | | | | | | | | fix https://github.com/incuna/django-wkhtmltopdf/issues/71
* | | Merge pull request #97 from powderflask/masterMax Peterson2015-12-011-1/+2
|\ \ \ | |_|/ |/| | Add catch IOError for fileno() call
| * | Update utils.pyJoseph2015-11-261-1/+1
| | |
| * | Update utils.pyJoseph2015-11-261-1/+2
| | |
* | | Merge pull request #94 from timb07/masterMax Peterson2015-11-301-0/+12
|\ \ \ | | | | | | | | Enable tests to run with Django >= 1.7 and silence warnings
| * | | Enable tests to run with Django >= 1.7 and silence warningsTim Bell2015-10-211-0/+12
| |/ /
* | | Merge pull request #89 from fanquake/patch-1Max Peterson2015-11-301-3/+3
|\ \ \ | |/ / |/| | [Doc] Fix links to point to correct website
| * | [Doc] Fix links to point to correct websiteMichael2015-09-171-3/+3
|/ /
* | Bump versionv2.0.3James Turnbull2015-07-312-1/+8
| | | | | | | | Release 2.0.3
* | README cleanupJames Turnbull2015-07-311-4/+4
| | | | | | | | Minor fixes
* | Removed version from debug messageJames Turnbull2015-07-311-1/+1
| |
* | Merge pull request #85 from powderflask/masterJames Turnbull2015-07-311-2/+7
|\ \ | | | | | | Skip absolute path substitution where STATIC or MEDIA URL are empty or None
| * | Patch python3 / mod_wsgi incompatibility on sys.stderrr.fileno() callJoseph2015-07-281-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 setJoseph2015-07-161-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!!
* | Merge pull request #83 from DeadWisdom/masterJames Turnbull2015-07-311-1/+2
|\ \ | | | | | | WKHTMLTOPDF_CMD needs to be properly split by the shlex module
| * | WKHTMLTOPDF_CMD is properly split by the shlex module split() which properly ↵Brantley Harris2015-06-221-1/+2
| |/ | | | | | | accounts for quotes and escapes.
* | Merge pull request #77 from dduong42/patch-2James Turnbull2015-07-311-0/+5
|\ \ | | | | | | Add documentation link to the README
| * | Add documentation link to the READMEDaniel Duong2015-03-021-0/+5
| |/
* | Merge pull request #87 from incuna/fix_testsCharlie Denton2015-07-311-3/+3
|\ \ | |/ |/| Update wkhtmltopdf deb link
| * Added xfonts-75dpiJames Turnbull2015-07-311-1/+1
| |
| * Update wkhtmltopdf deb linkJames Turnbull2015-07-311-2/+2
|/
* Merge pull request #65 from ashkulz/patch-1Maciek Lenc2014-11-111-19/+1
|\ | | | | update installation instructions to use new website
| * update installation instructions to use new websiteAshish Kulkarni2014-11-111-19/+1
|/
* Merge pull request #63 from dduong42/patch-1Charlie Denton2014-10-271-1/+1
|\ | | | | Change the wkhtmltopdf url
| * Change the wkhtmltopdf urlDaniel Duong2014-10-271-1/+1
|/
* Merge branch 'master' of github.com:incuna/django-wkhtmltopdfMatt Lenc2014-09-014-17/+47
|\
| * Merge pull request #59 from michelts/masterMaciek Lenc2014-09-012-10/+40
| |\ | | | | | | Fix encoding issues in PDFTemplateResponse with python 2.x
| | * Rely only smart_text once django 1.4 also supports it.Michel Sabchuk2014-09-011-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 Sabchuk2014-09-011-0/+1
| | |
| | * Makes tests.py lines 80 columns max.Michel Sabchuk2014-09-011-4/+10
| | |
| | * Replace smart_str with smart_text/unicode for py2.x compat.Michel Sabchuk2014-09-011-2/+5
| | |
| | * Makes unicode content views testing fails too.Michel Sabchuk2014-09-011-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 Sabchuk2014-09-011-0/+11
| |/
| * Merge pull request #58 from incuna/fix-failing-testsCharlie Denton2014-07-162-7/+7
| |\ | | | | | | Fix failing tests
| | * Superuser privilege - Travis is picky!Matt Lenc2014-07-161-1/+1
| | |
| | * Check for wkhtmltopdf after it was installed :DMatt Lenc2014-07-161-1/+1
| | |
| | * Use precompiled library not source oneMatt Lenc2014-07-161-5/+5
| | |
| | * Fix wkhtmltox for TravisMatt Lenc2014-07-161-3/+3
| | |
| | * Show Travis test status against master branch onlyMatt Lenc2014-07-161-1/+1
| |/
* / Bump to v2.0.2v2.0.2Matt Lenc2014-09-012-1/+6
|/