Don't explicitly save sessions
authorNathan Kinder <nkinder@redhat.com>
Wed, 11 Mar 2015 23:51:29 +0000 (16:51 -0700)
committerSimo Sorce <simo@redhat.com>
Thu, 12 Mar 2015 19:36:33 +0000 (15:36 -0400)
commit22e983978fcbd84896468017dd5bdacf8a18cf3c
treee0804b30b3c6104569274b60ef9f9e778ac94621
parent078942b2cf6d73697f4c6b8a28cabe940f358532
Don't explicitly save sessions

Saving a session causes it to be unlocked, but sessions have a
hook that also performs a save just before the session is finalized.
In CherryPy 3.3.0 and later, an assertion was added to ensure that
a session is locked when trying to perform a save.  Since we perform
explicit saves in our code, this causes the assertion to be tripped
when the hook executes.

This patch removes our explicit save calls.  We should rely on the
hook to save and unlock the session.

https://fedorahosted.org/ipsilon/ticket/84

Signed-off-by: Nathan Kinder <nkinder@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com>
ipsilon/util/user.py