[mod_python] Multiple call to Session.Session(req) problem

Alex Greif alex.greif at gmail.com
Fri Oct 13 10:35:09 EDT 2006


Hi,

I have the problem that getting the session instance in a handler more
than once makes the server hang on the second access to the session.
the problem does ot occure on windows XP but on suse Linux with 3.2.10

Here is my scenario:

def view_ticket_detail(req, ticketId):
    def __access__(req, user):
        ...
        # webutil.authorize will get the session
        return webutil.authorize(req=req, login=user, neededRole=neededRole)

    req.content_type = "text/html"
    ...
    # now I need the session again
    session = Session.MemorySession(req) ###### <-- here the server hangs

any ideas?


More information about the Mod_python mailing list