File: //proc/self/root/opt/alt/python27/lib/python2.7/site-packages/paste/session.pyo
�
a�Nc @ s� d Z d d l m Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z y d d l Z Wn e
k
r� d d l Z n Xy d d l m
Z
Wn! e
k
r� d d l
m
Z
n Xd d l m Z d d l m Z d e f d � � YZ d e f d
� � YZ d a e a e j d d � a d e f d � � YZ d e f d � � YZ e � Z e e e e e d � Z d S( s�
Creates a session object in your WSGI environment.
Use like:
..code-block:: Python
environ['paste.session.factory']()
This will return a dictionary. The contents of this dictionary will
be saved to disk when the request is completed. The session will be
created when you first fetch the session dictionary, and a cookie will
be sent in that case. There's current no way to use sessions without
cookies, and there's no way to delete a session except to clear its
data.
@@: This doesn't do any locking, and may cause problems when a single
session is accessed concurrently. Also, it loads and saves the
session for each request, with no caching. Also, sessions aren't
expired.
i����( t SimpleCookieN( t md5( t wsgilib( t requestt SessionMiddlewarec B s e Z d d � Z d � Z RS( c K s | | _ | | _ d S( N( t applicationt
factory_kw( t selfR t global_confR ( ( s>