[reportlab-users] reportlab and modpython
David Fraser
reportlab-users@reportlab.com
Wed, 25 Feb 2004 16:43:51 +0200
We have had this problem before and solved it but I can't remember the
solution.
However you may want to search the archives and try things like checking
the extension of the request is .pdf and appending a .pdf if there is a
query string:
http://localhost/path/to/file.pdf?arg1=val1&arg2=val2&dummyarg=.pdf
Then also make sure that the PDF file is returned as the correct content
type
David
Hector Sanchez SanMartin wrote:
> Hello everybody,
>
> I have to apologise because I was blaming reportlab and mod_python
> thinking that there was a problem between them but actually I have
> realised that it is not their fault; we were having very strange
> behaviours when using mod_python and reportlab altogether but while
> trying to write a small example to demonstrate it we noticed the
> behaviour was even more strange than we thought and by chance we have
> discovered that this strange behaviour only happens when the client
> uses IE web browser..yes, I know it sounds very strange but it seems
> to be like this although we have to investigate further. Actually the
> strange behaviour appeared when we tried to output a PDF as IE seems
> to senf twice an HTTP request, but eveything goes perfect if we
> generate the PDF into a local file in the server.
>
> Apologises again and sorry for the wasted time I could provoke.
>
> Thanks a lot and congratulations for your very nice tool (we will
> certainly use it for our project)
>
>
>
> David Fraser wrote:
>
>> Hi
>>
>> We have previously run reportlab under mod_python without any
>> significant problems ... however we are not currently doing it as we
>> changed our reporting strategy...
>> just wanted to let you know it has been done successfully before
>>
>> David
>>
>> Hector Sanchez SanMartin wrote:
>>
>>> Hello all,
>>>
>>> First of all, I would like to thank you for your quick reply. I
>>> have to apologise not to have replied before but I wasn't subscirbed
>>> to the list and as you didn't reply to me directly I didn't realise
>>> your replies till now.
>>> About webware, thanks a lot for the info; I already know it and
>>> it seems to be quite a good app server but our trouble is that all
>>> our developement is already done under mod_python and for the moment
>>> we are not planning to change it.
>>>
>>> About mod_python, it is an Apache module which keeps the python
>>> interpreter loaded into Apache so the performance is great. More
>>> info and downloads about it can be found at
>>> <http://www.modpython.org/>. We are trying now to write a simple
>>> case where reportlab and mod_python are colliding (at the moment the
>>> examples we have are quite coupled with our developement) so it's
>>> easier for you to understand where the problem comes from. I'll
>>> post it as soon as possible.
>>>
>>> Thanks again
>>>
>>>
>>> Andy Robinson wrote:
>>>
>>>> That's really useful documentation, thanks very much!
>>>>
>>>> If anyone can post something similar for mod_python
>>>> that would be great...
>>>>
>>>> - Andy Robinson
>>>>
>>>>
>>>>
>>>>> -----Original Message-----
>>>>> From: reportlab-users-admin@reportlab.com
>>>>> [mailto:reportlab-users-admin@reportlab.com]On Behalf Of Christoph
>>>>> Zwerschke
>>>>> Sent: 23 February 2004 09:58
>>>>> To: reportlab-users@reportlab.com
>>>>> Subject: Re: [reportlab-users] reportlab and modpython
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> We have done some tests and we are now having strange
>>>>>> behaviour of
>>>>>> reportlab/mod_python.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> This does not answer your question, but I just want to point to an
>>>>> alternative to mod_python called "Webware for Python"
>>>>> (http://webware.sourceforge.net). I am using the combination
>>>>> Apache/Webware/Reportlab/PostgreSQL and found they are playing
>>>>> together very
>>>>> well. Webware is communicating with Apache using the WebKit adapter.
>>>>> Communication between Webware and ReportLab is documented here:
>>>>> http://webware.colorstudy.net/twiki/bin/view/Webware/PdfCreationWi
>>>>>
>>>>
>>>>
>>>>
>>>> thReportLab001
>>>>
>>>> Christoph Zwerschke
>>>>
>>>> _______________________________________________
>>>> reportlab-users mailing list
>>>> reportlab-users@reportlab.com
>>>> http://two.pairlist.net/mailman/listinfo/reportlab-users
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>
>> _______________________________________________
>> reportlab-users mailing list
>> reportlab-users@reportlab.com
>> http://two.pairlist.net/mailman/listinfo/reportlab-users
>>
>
>