Code

#18440 closed Cleanup/optimization (fixed)

Clarify that Reportlab is not thread-safe in pdf section

Reported by: jens@… Owned by: nobody
Component: Documentation Version: 1.4
Severity: Normal Keywords: pdf reportlab
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

In the doc section on 'Outputting PDFs with Django' there is a strong bias towards Reportlab and Reportlab is great - but it is not thread-safe. This should at least be mentioned and clarified that if if the intention is to offer pdf download from views that can be concurrently accessed - then Reportlab is not the right tool.

I have used Reportlab and now as the usage of my site grows I started to get really strange bugs in reportlab that has taken me now a week to figure out that this is due to threading issues in Reportlab. Had I known this from the start I should not have invested all the effort in using Reportlab, now I need to figure out how to replace it.

/ Jens

Attachments (0)

Change History (3)

comment:1 Changed 23 months ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

Good point. Do you know alternatives that we could point to? Or should we just mention the thread-(un)safety problem?

comment:2 Changed 23 months ago by anonymous

Have not yet decided on how to go about this, can update here with how I go about this. Would be at least good to mention characteristic of Reportlab in docs.

comment:3 Changed 23 months ago by Adrian Holovaty <adrian@…>

  • Resolution set to fixed
  • Status changed from new to closed

In [c63c62a18a2b434284d3438bcb2be0893d8fcce3]:

Fixed #18440 -- Pointed out that ReportLab is not thread safe. Thanks, jens@…

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.