[mod_python] Publisher Session not functional (?)

Lukas Linhart almad at include.cz
Tue Jan 18 18:08:12 EST 2005


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)

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 

Thanks for any hints, 


Lukas "Almad" Linhart

[:: http://www.Include.cz/ ::]
[:: Including Your wishes ::]
[:: PGP/GNUPg key: http://download.almad.net/pubkey.asc ::]

=== output ===
Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/mod_python/apache.py", line 299, in 
    result = object(req)

  File "/usr/lib/python2.3/site-packages/mod_python/publisher.py", line 136, 
in handler
    result = util.apply_fs_data(object, req.form, req=req)

  File "/usr/lib/python2.3/site-packages/mod_python/util.py", line 361, in 
    return object(**args)

  File "/var/data/web/almad.net/pokus.py", line 8, in index
    relace = Session.Session(req)

  File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 389, in 
    timeout=timeout, lock=lock)

  File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 294, in 
    timeout=timeout, lock=lock)

  File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 132, in 
    Cookie.add_cookie(self._req, self.make_cookie())

  File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 160, in 
    c.path = dirpath[len(docroot):]

TypeError: unsubscriptable object
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: not available
Url : http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050119/1f97971f/attachment.bin

More information about the Mod_python mailing list