| Server IP : 182.53.201.61 / Your IP : 216.73.217.175 Web Server : Apache/2.2.15 (Fedora) System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686 User : apache ( 48) PHP Version : 5.3.3 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python2.6/site-packages/paste/ |
Upload File : |
Ñò
•ÊIc @ s… d Z d d k l Z d d k Z d d k Z d d k Z d d k Z d d k Z d d k Z y d d k Z Wn e
j
o d d k Z n Xy d d k l
Z
Wn# e
j
o d d k
l
Z
n Xd d k l Z d d k l Z d e f d „ ƒ YZ d e f d
„ ƒ YZ d a e a e i 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 ( ( s1 /usr/lib/python2.6/site-packages/paste/session.pyt __init__/ s c sƒ t | | i ‰ ˆ | d <g ‰ d ‡ ‡ ‡ f d † } | i | | ƒ } ‡ ‡ ‡ f d † } ‡ f d † } t i | | | ƒ S( Ns paste.session.factoryc sH ˆ i p | | g ˆ (ˆ | | ƒ S| i ˆ i ƒ ƒ ˆ | | | ƒ S( N( t createdt appendt set_cookie_header( t statust headerst exc_info( t start_responset session_factoryt remember_headers( s1 /usr/lib/python2.6/site-packages/paste/session.pyt session_start_response8 s
c s` ˆ i oR ˆ oK ˆ \ } } | i ˆ i ƒ ƒ t d ƒ } ˆ | | | i | d f ƒ n d S( NsL You cannot get the session after content from the app_iter has been returned( R
R R t
ValueErrort __class__t None( R
R t exc( R R R ( s1 /usr/lib/python2.6/site-packages/paste/session.pyt start@ s c s ˆ i o ˆ i ƒ n d S( N( t usedt close( ( R ( s1 /usr/lib/python2.6/site-packages/paste/session.pyR I s
( t SessionFactoryR R R R t add_start_close( R t environR R t app_iterR R ( ( R R R s1 /usr/lib/python2.6/site-packages/paste/session.pyt __call__3 s
N( t __name__t
__module__R R R ( ( ( s1 /usr/lib/python2.6/site-packages/paste/session.pyR - s R c B sS e Z d d
d d „ Z d „ Z d „ Z d „ Z d
d „ Z d „ Z d „ Z RS( t _SID_i<