[mod_python] zero terminated strings and req.write

Gregory (Grisha) Trubetskoy grisha at modpython.org
Tue Mar 9 14:00:30 EST 2004



On Tue, 9 Mar 2004, Frederick Grim wrote:

> Gregory (Grisha) Trubetskoy at <grisha at modpython.org> replied:
> >
> >
> > On Tue, 9 Mar 2004, Frederick Grim wrote:
> >
> > > 	1. Is this a correct analysis
> > > 	2. Is this a bug or my misuse of mod_python
> >
> > The answer depends very much on Erik's question (below). What does the
> > relevant part of your Apache config look like?
>
> 	I was using the publisher

Well there is the answer - the return value from the functions called by
the publisher is your content, so if you didn't want to return anything
you can just "return" without any arguments.

Grisha

> >
> > > > Dumb questions maybe, but what handler are you using?  If you're using
> > > > the publisher handler, then maybe that zero at the end is what
> > > > apache.OK equals?
> > > >
> > > >
> > > > Best regards,
> > > > Erik
> > _______________________________________________
> > Mod_python mailing list
> > Mod_python at modpython.org
> > http://mailman.modpython.org/mailman/listinfo/mod_python
>
> --
> "Windows Longhorn will be like having a little cop right inside your computer"
> 	-- Jorge Lopez, MCSE
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>


More information about the Mod_python mailing list