[mod_python] merges results from previous requests of the same page

Graham Dumpleton graham.dumpleton at gmail.com
Sat Jun 28 23:21:36 EDT 2008


See log_error() function in:

  http://www.modpython.org/live/current/doc-html/pyapi-apmeth.html

Thus:

  from mod_python import apache
  apache.log_error("message")

Also look at request object methods, as it also has a log_error() method:

  http://www.modpython.org/live/current/doc-html/pyapi-mprequest-meth.html

In other words, read the documentation.

Graham

2008/6/28 Giovanni Marco Dall'Olio <dalloliogm at gmail.com>:
> Hi,
> thank you all for the replies.
>
> On Sat, Jun 28, 2008 at 2:56 AM, Graham Dumpleton
> <graham.dumpleton at gmail.com> wrote:
>> Have you by adding logging to your handlers, absolutely verified that
>> handler is actually being called on every request. If you are working
>> through a proxy, it may be doing some caching you don't know about.
>
> How can I do that? I tried to use the pdb tool, but failed to use it
> because - ehr - I don't know how to start apache in console mode in
> ubuntu. I will look at that.
> I'm not working through a proxy.
>
>
>> 2008/6/28 Giovanni Marco Dall'Olio <dalloliogm at gmail.com>:
>>> I'm getting some artifacts when I execute multiple time a script with
>>> different parameters, under mod_python.
>>>
>>> Basically I have a small applications which, depending of the value of
>>> a GET variable, reads some files stored in the server and returns to
>>> client a small web page, a representation of the values in those
>>> files.
>>>--
> -----------------------------------------------------------
>
> My Blog on Bioinformatics (italian): http://bioinfoblog.it
>


More information about the Mod_python mailing list