/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm
NameSizeModeActions
attributes.py671370644editdlrm
attributes.pyc621290644editdlrm
attributes.pyo618510644editdlrm
base.py148640644editdlrm
base.pyc155580644editdlrm
base.pyo155580644editdlrm
collections.py526140644editdlrm
collections.pyc634480644editdlrm
collections.pyo632260644editdlrm
dependency.py465560644editdlrm
dependency.pyc296240644editdlrm
dependency.pyo295330644editdlrm
deprecated_interfaces.py207510644editdlrm
deprecated_interfaces.pyc227760644editdlrm
deprecated_interfaces.pyo227760644editdlrm
descriptor_props.py282010644editdlrm
descriptor_props.pyc322160644editdlrm
descriptor_props.pyo322160644editdlrm
dynamic.py146660644editdlrm
dynamic.pyc153390644editdlrm
dynamic.pyo153390644editdlrm
evaluator.py54410644editdlrm
evaluator.pyc78190644editdlrm
evaluator.pyo78190644editdlrm
events.py944090644editdlrm
events.pyc1036650644editdlrm
events.pyo1036650644editdlrm
exc.py66100644editdlrm
exc.pyc88380644editdlrm
exc.pyo88380644editdlrm
identity.py102990644editdlrm
identity.pyc151090644editdlrm
identity.pyo151090644editdlrm
instrumentation.py181310644editdlrm
instrumentation.pyc216330644editdlrm
instrumentation.pyo215440644editdlrm
interfaces.py257660644editdlrm
interfaces.pyc302340644editdlrm
interfaces.pyo302340644editdlrm
loading.py322360644editdlrm
loading.pyc205740644editdlrm
loading.pyo205490644editdlrm
mapper.py1283440644editdlrm
mapper.pyc1004120644editdlrm
mapper.pyo1001980644editdlrm
path_registry.py92620644editdlrm
path_registry.pyc132560644editdlrm
path_registry.pyo132560644editdlrm
persistence.py656520644editdlrm
persistence.pyc467860644editdlrm
persistence.pyo467860644editdlrm
properties.py110430644editdlrm
properties.pyc121110644editdlrm
properties.pyo121110644editdlrm
query.py1725900644editdlrm
query.pyc1550140644editdlrm
query.pyo1549360644editdlrm
relationships.py1244420644editdlrm
relationships.pyc1053180644editdlrm
relationships.pyo1052930644editdlrm
scoping.py63930644editdlrm
scoping.pyc76800644editdlrm
scoping.pyo76800644editdlrm
session.py1287540644editdlrm
session.pyc1201170644editdlrm
session.pyo1199380644editdlrm
state.py310440644editdlrm
state.pyc322940644editdlrm
state.pyo322380644editdlrm
strategies.py846020644editdlrm
strategies.pyc630190644editdlrm
strategies.pyo626680644editdlrm
strategy_options.py555050644editdlrm
strategy_options.pyc527300644editdlrm
strategy_options.pyo525960644editdlrm
sync.py55360644editdlrm
sync.pyc46280644editdlrm
sync.pyo46280644editdlrm
unitofwork.py247350644editdlrm
unitofwork.pyc245650644editdlrm
unitofwork.pyo244890644editdlrm
util.py448590644editdlrm
util.pyc443630644editdlrm
util.pyo442110644editdlrm
__init__.py95420644editdlrm
__init__.pyc107590644editdlrm
__init__.pyo107590644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pyc (7680B)
σ ΓΜ4]c @s,ddlmZddlmZddlmZddlmZddlmZddlm Z ddlm Z dgZ de fd „ƒYZ e Zd „Zx'ejD]Zee eeeƒƒq¨Wd „Zx$dD]Zee eeeƒƒqΨWd„Zx$dD]Zee eeeƒƒqWdS(i(t class_mapper(texc(tSessioni(tScopedRegistry(tThreadLocalRegistry(twarntscoped_sessioncBsGeZdZdZdd„Zd„Zd„Zd„Zdd„Z RS(stProvides scoped management of :class:`.Session` objects. See :ref:`unitofwork_contextual` for a tutorial. cCs7||_|r$t||ƒ|_nt|ƒ|_dS(sΡConstruct a new :class:`.scoped_session`. :param session_factory: a factory to create new :class:`.Session` instances. This is usually, but not necessarily, an instance of :class:`.sessionmaker`. :param scopefunc: optional function which defines the current scope. If not passed, the :class:`.scoped_session` object assumes "thread-local" scope, and will use a Python ``threading.local()`` in order to maintain the current :class:`.Session`. If passed, the function should return a hashable token; this token will be used as the key in a dictionary in order to store and retrieve the current :class:`.Session`. N(tsession_factoryRtregistryR(tselfRt scopefunc((sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pyt__init__!s cKs[|rM|jjƒr'tjdƒ‚qW|j|}|jj|ƒ|Sn |jƒSdS(sΞReturn the current :class:`.Session`, creating it using the :attr:`.scoped_session.session_factory` if not present. :param \**kw: Keyword arguments will be passed to the :attr:`.scoped_session.session_factory` callable, if an existing :class:`.Session` is not present. If the :class:`.Session` is present and keyword arguments have been passed, :exc:`~sqlalchemy.exc.InvalidRequestError` is raised. sEScoped session is already present; no new arguments may be specified.N(Rthastsa_exctInvalidRequestErrorRtset(R tkwtsess((sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pyt__call__8s  cCs3|jjƒr"|jƒjƒn|jjƒdS(sζDispose of the current :class:`.Session`, if present. This will first call :meth:`.Session.close` method on the current :class:`.Session`, which releases any existing transactional/connection resources still being held; transactions specifically are rolled back. The :class:`.Session` is then discarded. Upon next usage within the same scope, the :class:`.scoped_session` will produce a new :class:`.Session` object. N(RR tclosetclear(R ((sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pytremovePs cKs0|jjƒrtdƒn|jj|dS(sreconfigure the :class:`.sessionmaker` used by this :class:`.scoped_session`. See :meth:`.sessionmaker.configure`. stAt least one scoped session is already present. configure() can not affect sessions that have already been created.N(RR RRt configure(R tkwargs((sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pyRas cs&dtf‡‡fd†ƒY}|ƒS(s"return a class property which produces a :class:`.Query` object against the class and the current :class:`.Session` when called. e.g.:: Session = scoped_session(sessionmaker()) class MyClass(object): query = Session.query_property() # after mappers are defined result = MyClass.query.filter(MyClass.name=='foo').all() Produces instances of the session's configured query class by default. To override and use a custom implementation, provide a ``query_cls`` callable. The callable will be invoked with the class's mapper as a positional argument and a session keyword argument. There is no limit to the number of query properties placed on a class. tquerycseZ‡‡fd†ZRS(csdyHt|ƒ}|rGˆr1ˆ|dˆjƒƒSˆjƒj|ƒSnWntjk r_dSXdS(Ntsession(RRRtorm_exctUnmappedClassErrortNone(tstinstancetownertmapper(t query_clsR (sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pyt__get__Œs (t__name__t __module__R"((R!R (sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pyR‹s(tobject(R R!R((R!R sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pytquery_propertyrsN( R#R$t__doc__RRR RRRR&(((sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pyRs    cs‡fd†}|S(Ncst|jƒˆƒ||ŽS(N(tgetattrR(R targsR(tname(sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pytdo‘s((R*R+((R*sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pyt instrument scs+‡fd†}‡fd†}t||ƒS(Ncst|jƒˆ|ƒdS(N(tsetattrR(R tattr(R*(sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pytset_¬scst|jƒˆƒS(N(R(R(R (R*(sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pytget―s(tproperty(R*R/R0((R*sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pytmakeprop«stbindtdirtytdeletedtnewt identity_mapt is_activet autoflusht no_autoflushtinfot autocommitcs‡fd†}t|ƒS(Ncsttˆƒ||ŽS(N(R(R(tclsR)R(R*(sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pyR+Εs(t classmethod(R*R+((R*sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pytclslevelΔst close_alltobject_sessiont identity_keyN( R3R4R5R6R7R8R9R:R;R<(R@RARB(tRRRRRR tutilRRRt__all__R%Rt ScopedSessionR,tpublic_methodstmethR-R2tpropR?(((sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/scoping.pyts8 ˆ