Chris Jackson
christopher.jackson at gmail.com
Tue Jan 18 23:26:57 EST 2005
What does your Apache configuration directive look for the Python section? <Directory ....> ... </Directory...> ~= Chris =~ On Wed, 19 Jan 2005 00:08:12 +0100, Lukas Linhart <almad at include.cz> wrote: > 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 > > [:: 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 > HandlerDispatch > 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 > apply_fs_data > 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 > Session > timeout=timeout, lock=lock) > > File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 294, in > __init__ > timeout=timeout, lock=lock) > > File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 132, in > __init__ > Cookie.add_cookie(self._req, self.make_cookie()) > > File "/usr/lib/python2.3/site-packages/mod_python/Session.py", line 160, in > make_cookie > c.path = dirpath[len(docroot):] > > TypeError: unsubscriptable object > > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python > > > >
|