Logo Search packages:      
Sourcecode: calibre version File versions

cherrypy::lib::sessions::FileSession Class Reference

Inheritance diagram for cherrypy::lib::sessions::FileSession:

cherrypy::lib::sessions::Session

List of all members.


Detailed Description

Implementation of the File backend for sessions

storage_path: the folder where session data will be saved. Each session
    will be saved as pickle.dump(data, expiration_time) in its own file;
    the filename will be self.SESSION_PREFIX + self.id.

Definition at line 280 of file sessions.py.


Public Member Functions

def __contains__
def __delitem__
def __getitem__
def __init__
def __len__
def __setitem__
def acquire_lock
def clean_up
def clear
def delete
def generate_id
def generate_id
def get
def has_key
def items
def keys
def load
def pop
def regenerate
def release_lock
def save
def setdefault
def setup
def update
def values

Public Attributes

 id
 locked

Static Public Attributes

int clean_freq = 5
string clean_freq__doc = "The poll rate for expired session cleanup in minutes."
 clean_thread = None
string clean_thread__doc = "Class-level Monitor which calls self.clean_up."
tuple id = property(_get_id, _set_id, doc=id__doc)
string id__doc = "The current session ID."
 id_observers = None
string id_observers__doc = "A list of callbacks to which to pass new id's."
 loaded = False
string loaded__doc
string LOCK_SUFFIX = '.lock'
string locked__doc
string SESSION_PREFIX = 'session-'
tuple setup = classmethod(setup)
int timeout = 60
string timeout__doc = "Number of minutes after which to delete session data."

Private Member Functions

def _delete
def _exists
def _get_file_path
def _load
def _save

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index