mod_python + publisher + psp + session problems

exhuma.twn exhuma at gmail.com
Mon Mar 20 10:53:07 CET 2006


Hi again,

as soon as I try to make use of the "session" object inside a
psp-template file, I get the following error:

Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

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

  File "/usr/lib/python2.4/site-packages/mod_python/publisher.py", line
143, in handler
    result = str(result)

  File "/usr/lib/python2.4/site-packages/mod_python/psp.py", line 228,
in __str__
    self.run()

  File "/usr/lib/python2.4/site-packages/mod_python/psp.py", line 191,
in run
    session = Session.Session(req)

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

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

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

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

TypeError: unsubscriptable object

Any ideas?




More information about the Python-list mailing list