Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bumped version to 1.2v1.2 | mattack108 | 2013-01-17 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of github.com:incuna/django-wkhtmltopdf into travis-setup | mattack108 | 2013-01-16 | 5 | -225/+211 |
|\ | |||||
| * | Remove unwanted settings vars from test project | mattack108 | 2013-01-15 | 1 | -4/+0 |
| | | |||||
| * | DRY on tests | mattack108 | 2013-01-15 | 1 | -140/+43 |
| | | |||||
| * | Fix tests and add new ones for show_content_in_browser feature | mattack108 | 2013-01-15 | 3 | -176/+264 |
| | | |||||
| * | Move make_absolute_paths to utils so it can be used in tests | mattack108 | 2013-01-15 | 2 | -37/+39 |
| | | |||||
| * | Remove old unused arg from PDFTemplateResponse class | mattack108 | 2013-01-15 | 1 | -2/+1 |
| | | |||||
| * | Remove double quotes from filename as it's done by content_disposition_filename | mattack108 | 2013-01-15 | 1 | -3/+2 |
| | | |||||
| * | Send good headers, in correct format | mattack108 | 2013-01-15 | 1 | -2/+3 |
| | | |||||
| * | PEP8 all the things! | mattack108 | 2013-01-15 | 1 | -12/+10 |
| | | |||||
* | | Move requirements file to test project, update travis.yml | mattack108 | 2013-01-15 | 1 | -0/+1 |
|/ | |||||
* | Add support for rendering PDF file in the browser | mattack108 | 2013-01-15 | 1 | -7/+16 |
| | |||||
* | Merge pull request #21 from shadowrock/fix-extra-slashes | James Turnbull | 2013-01-10 | 1 | -1/+2 |
|\ | | | | | Removed extra slashes so the local file paths work in Windows. | ||||
| * | Removed extra slashes so the local file paths work in Windows. | Matti Varjokallio | 2012-11-29 | 1 | -1/+2 |
| | | |||||
* | | Remove duplicates when replacing file paths | Zach Gohr | 2013-01-09 | 1 | -2/+7 |
| | | |||||
* | | Fix for case when WKHTMLTOPDF_CMD consists of many parts. | Matti Varjokallio | 2012-12-09 | 1 | -1/+1 |
|/ | |||||
* | Bumped versionv1.1 | James Turnbull | 2012-11-14 | 1 | -1/+1 |
| | |||||
* | Tidy up a bit | mlen108 | 2012-11-14 | 1 | -5/+9 |
| | |||||
* | Fix paths for STATIC media files | mlen108 | 2012-11-14 | 1 | -10/+27 |
| | |||||
* | Match single/double quotes. | mlen108 | 2012-11-13 | 1 | -1/+1 |
| | |||||
* | Use MEDIA_URL instead of hard-coded string. | mlen108 | 2012-11-13 | 1 | -1/+1 |
| | |||||
* | Fix images path in PDFs | mlen108 | 2012-11-13 | 2 | -92/+16 |
| | |||||
* | Bump version to v1.0.1v1.0.1 | Marc Tamlyn | 2012-08-31 | 1 | -1/+1 |
| | |||||
* | Add a test for unicode. | Marc Tamlyn | 2012-08-31 | 2 | -0/+41 |
| | | | | This isn't great but better than nothing... | ||||
* | Pass --encoding utf8 to wkhtmltopdf to render Unicode characters to PDF. | Simon Law | 2012-08-30 | 1 | -0/+3 |
| | | | | | | Since we PDFTemplateResponse renders templates, and Django uses UTF-8 to do the rendering, we can safely assume that the result is in UTF-8. | ||||
* | Merge with incuna | Simon Law | 2012-08-23 | 13 | -295/+39 |
|\ | |||||
| * | Bump to full 1.0 version.v1.0 | Marc Tamlyn | 2012-08-06 | 1 | -1/+1 |
| | | |||||
| * | Update version to rc2. | Marc Tamlyn | 2012-08-03 | 1 | -1/+1 |
| | | |||||
| * | Move tests into wkhtmltopdf.tests.* | Marc Tamlyn | 2012-08-03 | 6 | -3/+28 |
| | | | | | | | | Fixes #11. | ||||
| * | .html default suffix for render_to_temporary_file | Marc Tamlyn | 2012-07-27 | 1 | -1/+1 |
| | | | | | | | | | | It's expected by wkhtmltopdf that the files should end in .html, so it may as well be the default. | ||||
| * | Update version to 1.0-rc1.v1.0-rc1 | Marc Tamlyn | 2012-07-27 | 1 | -2/+1 |
| | | |||||
| * | Move the testproject out of the main folder. | Marc Tamlyn | 2012-07-27 | 7 | -193/+0 |
| | | | | | | | | Also exclude it from distributions using the MANIFEST. | ||||
| * | Update tests to remove deprecateded functions. | Marc Tamlyn | 2012-07-27 | 1 | -20/+16 |
| | | |||||
| * | Tidy up imports. | Marc Tamlyn | 2012-07-27 | 1 | -4/+1 |
| | | |||||
| * | Remove more deprecated stuff and tests for them. | Marc Tamlyn | 2012-07-27 | 2 | -41/+0 |
| | | |||||
| * | Don't override builtins by importing. | Marc Tamlyn | 2012-07-27 | 1 | -2/+2 |
| | | |||||
| * | Remove deprecated methods/views. | Marc Tamlyn | 2012-07-27 | 1 | -39/+0 |
| | | |||||
| * | Fix typo in docstring. | Charlie Denton | 2012-07-27 | 1 | -1/+1 |
| | | |||||
* | | Fix encoding issues ini PDFTemplateResponse.render_to_temporary_file() | Simon Law | 2012-08-23 | 1 | -1/+2 |
|/ | |||||
* | Python 2.6 compatibility fixes. | Simon Law | 2012-07-26 | 2 | -11/+11 |
| | | | | Implicit position arguments for str.format() are a 2.7ism. | ||||
* | settings.WKHTMLTOPDF_DEBUG defaults to settings.DEBUG. | Simon Law | 2012-07-25 | 1 | -1/+1 |
| | |||||
* | PDFTemplateResponse.convert_to_pdf() calls wkhtmltopdf. | Simon Law | 2012-07-25 | 1 | -5/+18 |
| | | | | Method to make it easier to override spawning of the wkhtmltopdf subprocess. | ||||
* | settings.WKHTMLTOPDF_ENV can override environment variables. | Simon Law | 2012-07-25 | 1 | -1/+6 |
| | | | | | | This is most usefully set to {'DISPLAY': ':1'} in production. This allows wkhtmltopdf access to a specific X headless server, since the server will not be running under X. | ||||
* | MEDIA_URL and STATIC_URL overrides PDFTemplateResponse.get_override_settings() | Simon Law | 2012-07-25 | 3 | -23/+98 |
| | | | | | | | | | | | | | | | | MEDIA_URL and STATIC_URL used to be set only in get_context_data(), but there are apps such as staticfiles and Django Compressor where this won't work well. Instead, they need to be overridden at the settings level, not at the context level. This allows template context processors to populate a RequestContext with the right values. In addition, MEDIA_URL and STATIC_URL are now overridden as file:// URLs, based on MEDIA_ROOT and STATIC_ROOT. This allows developers to access these views in runserver, against their current codebase. It also means faster access for wkhtmltopdf, since the files are stored locally. | ||||
* | Cleanups and documentation. | Simon Law | 2012-07-24 | 1 | -3/+10 |
| | |||||
* | PDFTemplateView actually renders headers and footers now. | Simon Law | 2012-07-24 | 1 | -1/+4 |
| | |||||
* | PDFTemplateView.cmd_options contains all the options to pass to wkhtmltopdf | Simon Law | 2012-07-24 | 3 | -15/+79 |
| | | | | | | | | | | | | | | | | | | | | Before, command-line arguments were class-based. Unfortunately, this means that you cannot add new command-line arguments without subclassing. Instead, PDFTemplateView.cmd_options is a dictionary of all command-line arguments. PDFTemplateView.as_view(cmd_options={...}) now works as expected. !!!! WARNING !!!! cmd_options is now empty, leaving wkhtmltopdf with its default behaviour. Explicitly add the options you want. Existing subclasses of PDFTemplateView will now break, but a PendingDeprecationWarning will be issued. Margins will now be wkhtmltopdf's default of 10mm. PdfTemplateView contains a compatibility shim with the old default values for margins and orientation. | ||||
* | Move testproject to wkhtmltopdf._testproject. | Simon Law | 2012-07-24 | 8 | -2/+195 |
| | | | | | | | | | | | | | | | Avoid polluting the global library namespace with testproject. Instead, since wkhtmltopdf tests use it, we install it within under a "private" name. --HG-- rename : testproject/__init__.py => wkhtmltopdf/_testproject/__init__.py rename : testproject/manage.py => wkhtmltopdf/_testproject/manage.py rename : testproject/requirements.txt => wkhtmltopdf/_testproject/requirements.txt rename : testproject/settings.py => wkhtmltopdf/_testproject/settings.py rename : testproject/templates/footer.html => wkhtmltopdf/_testproject/templates/footer.html rename : testproject/templates/sample.html => wkhtmltopdf/_testproject/templates/sample.html rename : testproject/urls.py => wkhtmltopdf/_testproject/urls.py | ||||
* | PDFTemplateResponse and PDFTemplateView now match Django's implementations | Simon Law | 2012-07-24 | 3 | -38/+307 |
| | | | | | | | | | PDFTemplateResponse is like TemplateResponse in that it does dynamic rendering of a template on the fly. PDFTemplateView has a much smaller implementation, relying on PDFTemplateResponse to do the rendering for it. It also knows about the standard TemplateResponse when it needs to render the HTML version. | ||||
* | PDFResponse is more robust: | Simon Law | 2012-07-23 | 3 | -6/+82 |
| | | | | | | | * Now matches HttpResponse in function signature. * Modern Django content_type/mimetype handling. * Sanitizes and quotes filenames in Content-Disposition header. * Tests. |