Hello,
Another bloke posted a while ago as well and said he hadn't received an
answer.
What is going on here? Have you ever seen this error before? I think that
there is some problem in getting the dirpath from the HTTP header, but don't
know enough about this to figure it out.
If I can't get this to work I'll have to bag SQLObject, which would be a
loss since it has so much potential.
This error occurs when I use the publisher handler to view a page, and in
that function it tries to create a session object, which is on line 24.
Any ideas?
Mod_python error: "PythonHandler mod_python.publisher"
Traceback (most recent call last):
File "C:\PYTHON23\Lib\site-packages\mod_python\apache.py", line 299, in
HandlerDispatch
result = object(req)
File "C:\PYTHON23\Lib\site-packages\mod_python\publisher.py", line 136, in
handler
result = util.apply_fs_data(object, req.form, req=req)
File "C:\PYTHON23\Lib\site-packages\mod_python\util.py", line 361, in
apply_fs_data
return object(**args)
File "C:/Program Files/Apache Group/Apache2/htdocs\Login.py", line 24, in
loadPage
sess = Session(req, secret=SECRET_CODE)
File "C:\PYTHON23\Lib\site-packages\mod_python\Session.py", line 386, in
Session
timeout=timeout, lock=lock)
File "C:\PYTHON23\Lib\site-packages\mod_python\Session.py", line 358, in
__init__
timeout=timeout, lock=lock)
File "C:\PYTHON23\Lib\site-packages\mod_python\Session.py", line 132, in
__init__
Cookie.add_cookie(self._req, self.make_cookie())
File "C:\PYTHON23\Lib\site-packages\mod_python\Session.py", line 160, in
make_cookie
c.path = dirpath[len(docroot):]
TypeError: unsubscriptable object
Cary FitzHugh
Software Engineer
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
|