[mod_python] NAV mod_python.publisher errors

Paul J. Pathiakis ppathiakis at eagleaccess.com
Fri Sep 29 11:25:49 EDT 2006


Hi,

would someone please respond to this?  I've posted twice to this list and no one responds.  I'm sorry if this is such a low level question but I'd really like to get it working.

I have index.py.  It seems to be found by the browser and an attempt is made by python to render it and display it.  However, I get the following:

Mod_python error: "PythonHandler mod_python.publisher"

Traceback (most recent call last):

  File "/usr/local/lib/python2.4/site-packages/mod_python/apache.py", line 299, in HandlerDispatch
    result = object(req)

  File "/usr/local/lib/python2.4/site-packages/mod_python/publisher.py", line 213, in handler
    published = publish_object(req, object)

  File "/usr/local/lib/python2.4/site-packages/mod_python/publisher.py", line 412, in publish_object
    return publish_object(req,util.apply_fs_data(object, req.form, req=req))

  File "/usr/local/lib/python2.4/site-packages/mod_python/util.py", line 439, in apply_fs_data
    return object(**args)

  File "/usr/local/www/data/nav/index.py", line 44, in index
    if req.session.has_key('user'):

AttributeError: 'mp_request' object has no attribute 'session'


Now, I can see on line 44 in index.py there is the exact line right under the last part of the error.  Why is the AttributeError being generated?  Why is mp_request (mod_python reqest object) missing the attribute session?  What is missing from httpd.conf file or other files that is not allowing this to continue?

Thank you,

Paul Pathiakis

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20060929/a369bada/attachment.html


More information about the Mod_python mailing list