|
cwfitzhu at rockwellcollins.com
cwfitzhu at rockwellcollins.com
Tue Jun 15 18:42:21 EDT 2004
I saw that someone else had this problem, but didn't see any responses so
i don't know if anyone knows what is going on, but I figured I would ask.
The following is the traceback.
When you point the browser to Login.py/loadPage:
def loadPage(req, retry=False):
# check if new session
sess = Session.Session(req, secret=SECRET_CODE)
#load a template
template = psp.PSP(req, filename="LoginPage.tmpl")
#load dynamic variables from the database into template to
if retry == True:
pageData['TextField'] = LOGIN_RETRY_MESSAGE
# if Retry - notify user of failed login attempt
#create HTML page
template.run(pageData)
return
You get the following error....
I can't really track it down because the session code is all wrapped up
with the apache code, so I can't do unit testing or anything.
Has anyone else seen a problem like this?
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://modpython.org/pipermail/mod_python/attachments/20040615/aa0fbf60/attachment.html
|