mindbane/resumeweb — pull request #1 by jordanbray (2011-10-21 18:13:08+00:00)
Title: Here you go

This:

- Render to PDF functionality (uses pisa to render and renders PDF if the HTTP GET parameter "pdf" exists)

- Correct usage of staticfiles

- Moved CSS to a static file so that the PDF rendering can use a different CSS file than the HTML rendering

- created a 'pdf' variable which can be used in the rendering template. It's True if the user want's a PDF

Known Issues:

- The default CSS file doesn't render properly with pisa. CSS styling doesn't make as much sense when the page has a fixed width and fixed margins, so a new CSS file needs to be written to address that issue.

- When downloading with chrome/chromium, the file is simply named 'download'. This is because chrome/chromium ignores the filename in the content disposition. As such, when rendering to a PDF, the URL will eventually need to contain the desired filename. The content disposition should also contain the same filename in order to support browsers that do the opposite.