durusmail: quixote-users: Sessions in mod_python (was [Quixote-users] Session persistence...
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
Sessions in mod_python (was [Quixote-users] Session persistence...
Titus Brown
2005-05-29
-> # --- mod_python/Session module --
-> class BaseSession(dict):
->    def __init__(self, ..., lock=1, ...):
->        self._lock = lock
->        self._locked = 0
->        ...
->        self.init_lock()
->        if self._sid:    # Session ID.
->            self.lock()
->            ...
->        if self._new:
->            # Unlock old ._sid, create session, unlock new ._sid.
->
->    def __del__(self):
->        self.unlock()

Isn't __del__ not a guaranteed call?

--titus
reply