Hi all-

We recently bumped up to python 2.6.2 in our server and ran into an incompatibility in the production version in websession.py. The problem is that UserDict has changed slightly and no longer calls "has_key", during a "get" call. This was resulting in dropped persistence in sessions, e.g. all logins were disabled and no session information was saved.

The fix is to add:

    def __contains__(self, key):
        self.__includeItemFromDB( key )
        return UserDict.__contains__(self, key)

to pSessionMapping.

I was going to include a patch, but after checking the git repo it looks like there are some major changes which probably make this problem obsolete. I include it just to help folks not using the development version and who might be bumping up to 2.6.

When can we look forward to a 1.0 release?

Cheers,
Mike

Reply via email to