[mod_python] Publisher Session not functional (?)

Chris Jackson christopher.jackson at gmail.com
Wed Jan 19 13:10:13 EST 2005


I noticed that your "DirectoryIndex" is called zapisnik.py, however your handler
is called index.  You can probably exclude the DirectoryIndex option,
and also do no worry about putting the .pyc extensions on your
options.

~= Chris =~



On Wed, 19 Jan 2005 12:31:28 +0100, Lukas Linhart <almad at include.cz> wrote:
> E-mail Chris Jackson ze dne Wed 19. of January 2005 05:26:
> > What does your Apache configuration directive look for the Python section?
> >
> > <Directory ....>
> > ...
> > </Directory...>
> >
> > ~= Chris =~
> 
> Sorry, I forgot:
> 
> <VirtualHost 81.0.234.91>
>   ServerName almad.net
>   ServerAlias www.almad.net
>   DocumentRoot /var/data/web/almad.net
>   DirectoryIndex zapisnik.pyc
>   AddHandler mod_python .py .pyc
>   PythonHandler mod_python.publisher
>   PythonDebug On
> </VirtualHost>
> 
> --
> 
> Lukas "Almad" Linhart
> 
> [:: http://www.Include.cz/ ::]
> [:: Including Your wishes ::]
> [:: PGP/GNUPg key: http://download.almad.net/pubkey.asc ::]
> 
> 
> 

[Original Message]

Hello,

I've done some further research and test this code on more configurations:

#!/usr/bin/env python
# -*- coding: iso-8859-2 -*-
from mod_python import Session

def index(req):
relace = Session.Session(req)
req.write(relace.id())

I've tested it on more configurations and Python/mod_python/apache versions,
but I always get this output (on the end of the mail).
Is something wrong with the code, configurations or it's bug of
mod_python.publisher?

Thanks for any hints,

--

Lukas "Almad" Linhart


More information about the Mod_python mailing list