Logo Search packages:      
Sourcecode: calibre version File versions

cherrypy::lib::sessions::PostgresqlSession Class Reference

Inheritance diagram for cherrypy::lib::sessions::PostgresqlSession:

cherrypy::lib::sessions::Session

List of all members.


Detailed Description

Implementation of the PostgreSQL backend for sessions. It assumes
    a table like this:

        create table session (
            id varchar(40),
            data text,
            expiration_time timestamp
        )

You must provide your own get_db function.

Definition at line 406 of file sessions.py.


Public Member Functions

def __contains__
def __del__
def __delitem__
def __getitem__
def __init__
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

 cursor
 db
 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 locked__doc
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 _load
def _save

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

Generated by  Doxygen 1.6.0   Back to index