Ñò
‰„[Jc @ s? d d k i Z d d k l Z l Z l Z l Z d d k l Z l
Z
l Z l Z d d k l
Z d d k l Z d g Z d e f d „ ƒ YZ d „ Z x' e i D] Z e e e e e ƒ ƒ q¥ Wd „ Z x$ d D] Z e e e e e ƒ ƒ qÕ Wd „ Z x$ d D] Z e e e e e ƒ ƒ qWd e
f d „ ƒ YZ d S( iÿÿÿÿN( t ScopedRegistryt to_listt get_cls_kwargst
deprecated( t EXT_CONTINUEt MapperExtensiont class_mappert object_session( t exc( t Sessiont
ScopedSessionc B sV e Z d Z d d „ Z d „ Z d „ Z e d ƒ d „ ƒ Z d „ Z d d „ Z
RS( sŸ Provides thread-local management of Sessions.
Usage::
Session = scoped_session(sessionmaker(autoflush=True))
... use session normally.
c C s. | | _ t | | ƒ | _ t | ƒ | _ d S( N( t session_factoryR t registryt
_ScopedExtt extension( t selfR t scopefunc( ( s: /usr/lib/python2.6/site-packages/sqlalchemy/orm/scoping.pyt __init__ s c K s | oz | i d t ƒ } | d j oJ | i i ƒ o t i d ƒ ‚ q} | i | } | i i | ƒ | Sq‹ | i | Sn | i ƒ Sd S( Nt scopesE Scoped session is already present; no new arguments may be specified.( t popt Falset NoneR t hast sa_exct InvalidRequestErrorR t set( R t kwargsR t sess( ( s: /usr/lib/python2.6/site-packages/sqlalchemy/orm/scoping.pyt __call__# s
c C s5 | i i ƒ o | i ƒ i ƒ n | i i ƒ d S( N( R R t closet clear( R ( ( s: /usr/lib/python2.6/site-packages/sqlalchemy/orm/scoping.pyt remove2 s sŸ Session.mapper is deprecated. Please see http://www.sqlalchemy.org/trac/wiki/UsageRecipes/SessionAwareMapper for information on how to replicate its behavior.c s“ d d k l } t ‡ f d † t t ƒ Dƒ ƒ } t ˆ i d g ƒ ƒ ˆ d <} | o | i | i i | ƒ n | i | i ƒ | | ˆ Ž S( s~ return a mapper() function which associates this ScopedSession with the Mapper.
DEPRECATED.
iÿÿÿÿ( t mapperc 3 s9 x2 | ]+ } | ˆ j o | ˆ i | ƒ f Vq q Wd S( N( R ( t .0t arg( R ( s: /usr/lib/python2.6/site-packages/sqlalchemy/orm/scoping.pys