class documentation

class ShelveSessionStore(SessionStore):

Constructor: ShelveSessionStore(filename)

View In Hierarchy

Open a 'shelve' dictionary with the given filename, and store sessions in it.

Shelve is not thread safe or multiprocess safe. See the "Restrictions" section for the shelve module in the Python Library Reference for information about file locking.

Method __init__ __init__ takes the filename to use as the shelve store.
Method delete_session Delete the given session from the shelf.
Method load_session Load the session from the shelf.
Method open Open the shelve store file.
Method save_session Save the session to the shelf.
Class Variable is_multiprocess_safe Undocumented
Class Variable is_thread_safe Undocumented
Instance Variable filename Undocumented

Inherited from SessionStore:

Method delete_old_sessions Delete all sessions that have not been modified for N minutes. The default implementation does nothing, meaning the store cannot delete old sessions.
Method has_session Return true if the session exists in the store, else false.
Method iter_sessions Return an iterable of (id, session) for all sessions in the store.
Method setup Initialize the session store; e.g., create required database tables. If a previous store exists, overwrite it or raise an error. The default implmenetation does nothing, meaning no setup is necessary.
def __init__(self, filename):

__init__ takes the filename to use as the shelve store.

def delete_session(self, session):

Delete the given session from the shelf.

def load_session(self, id, default=None):

Load the session from the shelf.

def open(self):

Open the shelve store file.

def save_session(self, session):

Save the session to the shelf.

is_multiprocess_safe: bool =
is_thread_safe: bool =
filename =

Undocumented