[mod_python] Problem getting the Publisher handler to return nothing

Charles Collis charles.collis at gmail.com
Thu Jan 31 04:47:55 EST 2008


Thanks necmettin,

The XMLHTTPRequest might be a good way forward, and I will probably end up
using it.

The reason I was trying the other method was that in point 2.19 in the
mod_python FAQ (http://www.modpython.org/FAQ/faqw.py?req=all#2.19) it
suggests forcing an Apache error as a very simple method of returning
nothing to the browser, so I was trying this first.

Charles.


On Jan 29, 2008 11:23 PM, Necmettin Begiter <necmettin.begiter at gmail.com>
wrote:

> 2008/1/29, Charles Collis <charles.collis at gmail.com>:
> > Thanks Graham.
> >
> > No I don't have any associated applications for .py files with my
> browser(s)
> > - I have checked the list of applications in Firefox preferences (on
> Ubuntu
> > machine) also this behaviour is happens on my Mac using Safari...
> >
> > Seems a bit odd!
>
> Been following this thread, seems what you are trying to do is to send
> a request to the server *only*, with no intention of having or showing
> a reply, in that case, this has nothing to do with Python or
> mod_python. It's about how web normally works: request-reply, ..
>
> It does not differ if the reply contains anything or not, that's how
> web servers and clients work; each request requires a reply. What you
> must do is to discard or hide the reply like so:
>
> If you have it among the options, use AJAX to fetch the reply and
> discard it (XMLHTTPRequest is the key); or, direct the output to a
> frame or iframe which is invisible (CSS and <form target=""..). Either
> way, you will get a reply from the web server but the client (person,
> not the application) will not see it.
>
> If I'm not mistaken about what you want, that is.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20080131/c8f6f86d/attachment.html


More information about the Mod_python mailing list