[Pso-development] 'mp_request' object has no attribute 'pso'
Status: Beta
Brought to you by:
thanos
|
From: Roy S. R. <pso...@ol...> - 2003-06-24 09:22:27
|
Greetings,
First of all, apologies -- I can't find a pso-users mailing list, and when
I searched the mailing list archives I couldn't find a match, though I know
sourceforge's list search utility is limited.
I've installed PSO 0.9.8-C beta and am trying to integrate it into an
implemented mod_python project. The specific code in question is:
---
def authenhandler(req):
try:
configp = req.pso().session['configp']
except:
configp = ConfigParser.ConfigParser()
configp.read(config_file)
req.pso().session['configp'] = configp
---
this results in:
---
Mod_python error: "PythonAuthenHandler dispatcher"
Traceback (most recent call last):
File "/usr/local/Python/lib/python2.2/site-packages/mod_python/apache.py", line 332, in HandlerDispatch
result = object(req)
File "/home/rsr/projects/selfdest/dispatcher.py", line 43, in authenhandler
req.pso().session['configp'] = configp
AttributeError: 'mp_request' object has no attribute 'pso'
---
My .htaccess looks like this:
---
AddHandler python-program .py
PythonHandler mod_python.publisher
PythonAuthenHandler dispatcher
PythonFixupHandler pso.modpython::fixup
PythonLogHandler pso.modpython::cleanup
PythonDebug On
AuthType Basic
AuthName "Enter your email username and password"
require valid-user
---
Any pointers to some documentation that will tell me what I'm doing wrong?
Thanks,
-roy
|