durusmail: quixote-users: Session persistence for Quixote 2.0
Session persistence for Quixote 2.0
2005-05-26
2005-05-27
2005-05-27
2005-05-27
2005-05-27
2005-05-27
2005-05-27
2005-05-27
2005-05-28
2005-05-29
2005-05-29
2005-05-29
2005-05-28
2005-05-28
2005-05-29
2005-05-29
Sessions in mod_python (was [Quixote-users] Session persistence...
2005-05-29
Session persistence for Quixote 2.0
Michele Simionato
2005-05-27
On 5/26/05, Titus Brown  wrote:
> Hi all,
>
> I sat down and implemented simple persistent session stores for Durus,
> PostgreSQL, and shelve, as well as a simple directory/file based
> session store.  My initial distribution is available here:
>
>         http://issola.caltech.edu/~t/transfer/qx-sessions.tar.gz
>

I gave a quick look. A few questions/remarks.

1. In ShelveSessionStore you are opening the database at
    any operation, why don't open it just in the __init__?

2. Why .lock and .unlock are left empty? Are there reasons not to
    specify the default locking mechanism?

3.  Exception("unimplemented") can be replaced with the built-in
     NotImplemented ;)

                    Michele Simionato
reply