aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #18 from incuna/images-fixedJames Turnbull2012-11-142-87/+32
|\ | | | | override_settings isn't in django.conf, and is unsuitable for production
| * Tidy up a bitmlen1082012-11-141-5/+9
| |
| * Fix paths for STATIC media filesmlen1082012-11-141-10/+27
| |
| * Match single/double quotes.mlen1082012-11-131-1/+1
| |
| * Use MEDIA_URL instead of hard-coded string.mlen1082012-11-131-1/+1
| |
| * Fix images path in PDFsmlen1082012-11-132-92/+16
|/
* Correct home URLJames Turnbull2012-08-311-1/+1
| | | Link to Github so you can find it from Pypi
* Bump version to v1.0.1v1.0.1Marc Tamlyn2012-08-311-1/+1
|
* Add a note about unicode characters to docs.Marc Tamlyn2012-08-311-0/+11
|
* Update changelog.Marc Tamlyn2012-08-311-0/+16
|
* Add a test for unicode.Marc Tamlyn2012-08-312-0/+41
| | | | This isn't great but better than nothing...
* Pass --encoding utf8 to wkhtmltopdf to render Unicode characters to PDF.Simon Law2012-08-302-1/+4
| | | | | | 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 incunaSimon Law2012-08-2315-296/+41
|\
| * Bump to full 1.0 version.v1.0Marc Tamlyn2012-08-061-1/+1
| |
| * Check PYTHONPATH in the Makefile.Marc Tamlyn2012-08-061-1/+1
| |
| * Update version to rc2.Marc Tamlyn2012-08-032-3/+1
| |
| * Move tests into wkhtmltopdf.tests.*Marc Tamlyn2012-08-0311-189/+20
| | | | | | | | Fixes #11.
| * .html default suffix for render_to_temporary_fileMarc Tamlyn2012-07-271-1/+1
| | | | | | | | | | It's expected by wkhtmltopdf that the files should end in .html, so it may as well be the default.
| * Exclude tests file from distributions as well.Marc Tamlyn2012-07-271-0/+1
| |
| * Update version to 1.0-rc1.v1.0-rc1Marc Tamlyn2012-07-271-2/+1
| |
| * Move the testproject out of the main folder.Marc Tamlyn2012-07-279-2/+3
| | | | | | | | Also exclude it from distributions using the MANIFEST.
| * Update tests to remove deprecateded functions.Marc Tamlyn2012-07-271-20/+16
| |
| * Add testing to the makefile.Marc Tamlyn2012-07-271-0/+2
| |
| * Tidy up imports.Marc Tamlyn2012-07-271-4/+1
| |
| * Remove more deprecated stuff and tests for them.Marc Tamlyn2012-07-272-41/+0
| |
| * Don't override builtins by importing.Marc Tamlyn2012-07-271-2/+2
| |
| * Remove deprecated methods/views.Marc Tamlyn2012-07-271-39/+0
| |
| * Fix typo in docstring.Charlie Denton2012-07-271-1/+1
| |
| * Merge pull request #9 from ecometrica/masterMarc Tamlyn2012-07-2717-108/+870
| |\ | | | | | | Refactoring of django-wkhtmltopdf
* | | Fix encoding issues ini PDFTemplateResponse.render_to_temporary_file()Simon Law2012-08-231-1/+2
| |/ |/|
* | Python 2.6 compatibility fixes.Simon Law2012-07-262-11/+11
| | | | | | | | Implicit position arguments for str.format() are a 2.7ism.
* | Documentation updates for new and updated behaviour.Simon Law2012-07-253-15/+116
| |
* | docs/conf.py can now find the version number.Simon Law2012-07-251-3/+3
| |
* | settings.WKHTMLTOPDF_DEBUG defaults to settings.DEBUG.Simon Law2012-07-251-1/+1
| |
* | PDFTemplateResponse.convert_to_pdf() calls wkhtmltopdf.Simon Law2012-07-251-5/+18
| | | | | | | | Method to make it easier to override spawning of the wkhtmltopdf subprocess.
* | settings.WKHTMLTOPDF_ENV can override environment variables.Simon Law2012-07-251-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 Law2012-07-253-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 Law2012-07-241-3/+10
| |
* | PDFTemplateView actually renders headers and footers now.Simon Law2012-07-241-1/+4
| |
* | PDFTemplateView.cmd_options contains all the options to pass to wkhtmltopdfSimon Law2012-07-243-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 Law2012-07-249-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 implementationsSimon Law2012-07-244-38/+309
| | | | | | | | | | | | | | | | | | 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 Law2012-07-233-6/+82
| | | | | | | | | | | | | | * Now matches HttpResponse in function signature. * Modern Django content_type/mimetype handling. * Sanitizes and quotes filenames in Content-Disposition header. * Tests.
* | Remove extraneous StringIO import.Simon Law2012-07-201-1/+0
| |
* | Use warnings.warn instead of raising PendingDeprecationWarnings.Simon Law2012-07-202-6/+29
| |
* | settings.WKHTMLTOPDF_CMD_OPTIONS sets default command-line options.Simon Law2012-07-202-3/+16
| |
* | settings.WKHTMLTOPDF_CMD is loaded on-the-fly, not at the module level.Simon Law2012-07-201-3/+2
| | | | | | | | This allows overriding this configuration option at run-time.
* | Reliable command-line argument parsing for wkhtmltopdf().Simon Law2012-07-202-20/+73
| | | | | | | | | | | | The API for wkhtmltopdf has changed. Long arguments that take no parameters now use True and not the empty string. In addition, argument-parameters may now be Unicode.
* | wkhtmltopdf() uses subprocess.check_output() instead of a custom Popen call.Simon Law2012-07-202-11/+49
| |
* | test_wkhtmltopdf tests that wkhtmltopdf generates a PDF.Simon Law2012-07-201-1/+13
| |