Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | settings.WKHTMLTOPDF_CMD is loaded on-the-fly, not at the module level. | Simon Law | 2012-07-20 | 1 | -3/+2 |
| | | | | This allows overriding this configuration option at run-time. | ||||
* | Reliable command-line argument parsing for wkhtmltopdf(). | Simon Law | 2012-07-20 | 2 | -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 Law | 2012-07-20 | 2 | -11/+49 |
| | |||||
* | test_wkhtmltopdf tests that wkhtmltopdf generates a PDF. | Simon Law | 2012-07-20 | 1 | -1/+13 |
| | |||||
* | test_template_to_temp_file tries to clean up after itself. | Simon Law | 2012-07-20 | 1 | -5/+13 |
| | |||||
* | Bump version to 0.3 | George Hickman | 2012-05-21 | 1 | -3/+3 |
| | | | | | | | * Tidy up the setup.py. * Remove the old `fread` method. * Make `__version__` a string. * Move `__author__` into __init__.py | ||||
* | Pass around args and kwargs in PDFResponse | George Hickman | 2012-05-21 | 1 | -5/+6 |
| | | | | | In case you want to pass more things up to HttpResponse. Can't pass filename down though. | ||||
* | Only set 'Content-Disposition' header if filename is set | George Hickman | 2012-05-21 | 1 | -2/+4 |
| | | | | | | | Setting 'Content-Disposition' explicitly sets the PDF as an attachment causing browsers to download the PDF. However newer browsers, like Chrome, will display the PDF without this header. So assume the dev wants this to be force download if they set the filename. | ||||
* | Don't remove tmp files before they're used. | George Hickman | 2012-05-21 | 1 | -6/+12 |
| | | | | | Put _tmp_files onto the object and remove them after the output has been created. | ||||
* | Bumped version | James Turnbull | 2012-03-09 | 1 | -1/+1 |
| | |||||
* | Fixed remote images in pdf | James Turnbull | 2012-03-09 | 1 | -2/+6 |
| | | | | If there's no context_instance (which seems to be the common case), make a Requestcontext and use that. | ||||
* | Bumped version to 0.2.1v0.2.1 | James Turnbull | 2012-03-09 | 1 | -1/+1 |
| | |||||
* | Be clear with template_to_temp_file's arguments | James Turnbull | 2012-03-09 | 1 | -2/+2 |
| | | | | | | | | | | | It's not obvious what template_to_temp_file is doing with its undefined arguments. The Zen of Python states: Explicit is better than implicit. Readability counts. An alternative solution would be to rename the function to loader_render_to_tempfile or similar, but this fix is more backwards-compatible. | ||||
* | Use get_template_names() to get templates | James Turnbull | 2012-03-09 | 1 | -1/+1 |
| | | | | | Rather than directly going to self.template_name use the get_template_names() function (which returns self.template_name if not overridden). | ||||
* | Bump version to 0.2v0.2 | Charlie Denton | 2012-02-24 | 1 | -1/+1 |
| | |||||
* | Restore *args to PDFTemplateView. | Charlie Denton | 2012-02-24 | 1 | -4/+2 |
| | |||||
* | Fix a couple of daft mistakes. | Charlie Denton | 2012-02-24 | 1 | -6/+7 |
| | |||||
* | Add get_filename method. | Charlie Denton | 2012-02-23 | 1 | -1/+4 |
| | |||||
* | Made PDFTemplateView a little more extensible, and added orientation. | Charlie Denton | 2012-02-23 | 1 | -12/+18 |
| | |||||
* | Return super when called. | Charlie Denton | 2012-02-23 | 1 | -1/+1 |
| | |||||
* | Make PDFTemplateView use PDFResponse. | Charlie Denton | 2012-02-23 | 1 | -1/+1 |
| | |||||
* | Deprecate baDly cApitalised Views. | Charlie Denton | 2012-02-23 | 1 | -2/+16 |
| | |||||
* | Test translation to temp file. | Marc Tamlyn | 2012-01-16 | 1 | -0/+13 |
| | |||||
* | Add a testproject and empty tests file. | Marc Tamlyn | 2012-01-16 | 2 | -0/+0 |
| | |||||
* | Fix use of STATIC vs MEDIA url | George Hickman | 2011-10-30 | 1 | -1/+1 |
| | |||||
* | Refactor the main render method into a class based view | George Hickman | 2011-10-30 | 2 | -30/+62 |
| | | | | | | Use a PdfResponse to deal with the headers and response type. Make the margin_* and filename variables instance variables on the view with sane defaults. | ||||
* | Code cleanup | George Hickman | 2011-10-30 | 1 | -3/+4 |
| | | | | | Fix a spelling mistake Wrap a particularly long line | ||||
* | Use with for file usage | George Hickman | 2011-10-30 | 1 | -6/+7 |
| | | | | | Replace old style file open and close with a `with` block for clarity and it's error handling. | ||||
* | Removed unised importv0.1.1 | Max Peterson | 2011-09-06 | 1 | -1/+0 |
| | |||||
* | Bumped version to 0.1.1 | Max Peterson | 2011-09-06 | 1 | -1/+1 |
| | |||||
* | Fixed init for mkrelease | Max Peterson | 2011-09-06 | 1 | -2/+5 |
| | |||||
* | Bumped version to 0.1.1 | Max Peterson | 2011-09-06 | 1 | -0/+3 |
| | |||||
* | Added smart_str | Max Peterson | 2011-09-06 | 1 | -1/+3 |
| | |||||
* | fixed some bugs, added filename support | Charlie Denton | 2011-07-25 | 1 | -4/+10 |
| | |||||
* | Added as new | Max Peterson | 2011-07-08 | 2 | -0/+89 |