<br><font size=2 face="sans-serif">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. </font>
<br>
<br><font size=2 face="sans-serif">The following is the traceback.</font>
<br><font size=2 face="sans-serif">When you point the browser to Login.py/loadPage:</font>
<br>
<br><font size=2 face="sans-serif">def loadPage(req, retry=False):</font>
<br><font size=2 face="sans-serif"> # check if new session</font>
<br><font size=2 face="sans-serif"> sess = Session.Session(req, secret=SECRET_CODE)</font>
<br><font size=2 face="sans-serif"> #load a template</font>
<br><font size=2 face="sans-serif"> template = psp.PSP(req, filename="LoginPage.tmpl")</font>
<br><font size=2 face="sans-serif"> #load dynamic variables from the database into template to</font>
<br><font size=2 face="sans-serif"> if retry == True:</font>
<br><font size=2 face="sans-serif"> pageData['TextField'] = LOGIN_RETRY_MESSAGE</font>
<br><font size=2 face="sans-serif"> # if Retry - notify user of failed login attempt</font>
<br><font size=2 face="sans-serif"> #create HTML page</font>
<br><font size=2 face="sans-serif"> template.run(pageData)</font>
<br><font size=2 face="sans-serif"> return</font>
<br><font size=2 face="sans-serif">You get the following error....</font>
<br><font size=2 face="sans-serif">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. </font>
<br><font size=2 face="sans-serif">Has anyone else seen a problem like this?</font>
<br>
<br><font size=2 face="sans-serif">Mod_python error: "PythonHandler mod_python.publisher"</font>
<br>
<br><font size=2 face="sans-serif">Traceback (most recent call last):</font>
<br>
<br><font size=2 face="sans-serif"> File "C:\PYTHON23\Lib\site-packages\mod_python\apache.py", line 299, in HandlerDispatch</font>
<br><font size=2 face="sans-serif"> result = object(req)</font>
<br>
<br><font size=2 face="sans-serif"> File "C:\PYTHON23\Lib\site-packages\mod_python\publisher.py", line 136, in handler</font>
<br><font size=2 face="sans-serif"> result = util.apply_fs_data(object, req.form, req=req)</font>
<br>
<br><font size=2 face="sans-serif"> File "C:\PYTHON23\Lib\site-packages\mod_python\util.py", line 361, in apply_fs_data</font>
<br><font size=2 face="sans-serif"> return object(**args)</font>
<br>
<br><font size=2 face="sans-serif"> File "C:/Program Files/Apache Group/Apache2/htdocs\Login.py", line 24, in loadPage</font>
<br><font size=2 face="sans-serif"> sess = Session(req, secret=SECRET_CODE)</font>
<br>
<br><font size=2 face="sans-serif"> File "C:\PYTHON23\Lib\site-packages\mod_python\Session.py", line 386, in Session</font>
<br><font size=2 face="sans-serif"> timeout=timeout, lock=lock)</font>
<br>
<br><font size=2 face="sans-serif"> File "C:\PYTHON23\Lib\site-packages\mod_python\Session.py", line 358, in __init__</font>
<br><font size=2 face="sans-serif"> timeout=timeout, lock=lock)</font>
<br>
<br><font size=2 face="sans-serif"> File "C:\PYTHON23\Lib\site-packages\mod_python\Session.py", line 132, in __init__</font>
<br><font size=2 face="sans-serif"> Cookie.add_cookie(self._req, self.make_cookie())</font>
<br>
<br><font size=2 face="sans-serif"> File "C:\PYTHON23\Lib\site-packages\mod_python\Session.py", line 160, in make_cookie</font>
<br><font size=2 face="sans-serif"> c.path = dirpath[len(docroot):]</font>
<br>
<br><font size=2 face="sans-serif">TypeError: unsubscriptable object<br>
</font>
<br><font size=2 face="sans-serif">Cary FitzHugh<br>
<br>
</font>