/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/path_registry.pyo (13256B)
ó ÃÌ4]c@sdZddlmZddlZddlmZddlmZddlmZdd lm Z ej e ƒZ d „Z d Zd Zd efd„ƒYZdefd„ƒYZeƒe_defd„ƒYZdefd„ƒYZdeefd„ƒYZdS(s@Path tracking utilities, representing mapper graph traversals. iÿÿÿÿ(tchainNi(t class_mapperi(texc(t inspection(tutilcCs tj|ƒS(N(t PathRegistryt deserialize(tpath((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyt_unreduce_pathst*t _sa_defaultRcBsÎeZdZeZeZd„Zd„Zd„Zdd„Z d„Z e d„ƒZ d„Zd„Zd „Zd „Zd „Zed „ƒZed „ƒZed„ƒZd„Zd„Zd„ZRS(sÜRepresent query load paths and registry functions. Basically represents structures like: (, "orders", , "items", ) These structures are generated by things like query options (joinedload(), subqueryload(), etc.) and are used to compose keys stored in the query._attributes dictionary for various options. They are then re-composed at query compile/result row time as the query is formed and as rows are fetched, where they again serve to compose keys to look up options in the context.attributes dictionary, which is copied from query._attributes. The path structure has a limited amount of caching, where each "root" ultimately pulls from a fixed registry associated with the first mapper, that also contains elements for each of its property keys. However paths longer than two elements, which are the exception rather than the rule, are generated on an as-needed basis. cCs|dk o|j|jkS(N(tNoneR(tselftother((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyt__eq__<scCs-tjd|||ƒ||||jfŒt(RtreduceR3(R/traw((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyR.ŠscCsZ|jdtƒr t||ƒS|jdtƒrCt|j|ƒStjd|ƒ‚dS(Nt:sinvalid token: %s(tendswitht_WILDCARD_TOKENt TokenRegistryt_DEFAULT_TOKENR3Rt ArgumentError(R ttoken((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyRAŽs  cCstjd„|j|ƒS(NcSs||S(N((R5R6((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyR7—R8(RR9R(R R ((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyt__add__–scCsd|jj|jfS(Ns%s(%r)(t __class__t__name__R(R ((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyt__repr__™sN(RDt __module__t__doc__R!tis_tokentis_rootRRRR RRtpropertyRRR$R%R'R&t classmethodRR4R.RARBRE(((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyRs(            t RootRegistrycBs3eZdZdZZeZeZeZ d„Z RS(sXRoot registry, defers to mappers so that paths are maintained per-root-mapper. cCs|jS(N(t_path_registry(R tentity((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyt __getitem__¨s(( RDRFRGRRR!t has_entitytis_aliased_classR RIRO(((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyRLs  R>cBs/eZd„ZeZeZd„Zd„ZRS(cCs<||_||_|j|f|_|j|f|_dS(N(RAtparentRR(R RRRA((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyt__init__°s  ccs¶|jj rU|jj rUx•|jjjƒD]!}t|jj||jƒVq-Wn]|jjr­|jjjr­|Vx:|jjj D]!}t|jj||jƒVq…Wn|VdS(N( RRRQRIR"titerate_to_rootR>RARNt_is_with_polymorphict_with_polymorphic_entities(R tent((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pytgenerate_for_superclassesºs" "cCs tƒ‚dS(N(tNotImplementedError(R RN((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyROÈs( RDRFRSR!RPR RHRXRO(((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyR>¯s   t PropRegistrycBseeZd„Zd„Zejd„ƒZejd„ƒZed„ƒZ ed„ƒZ d„Z RS(cCstj|dƒ}|j s&|jr9|j|j}n_|jr˜|jr˜|j|jk r˜|j|jkr˜|dj|jƒ}|j|}q˜n||_||_|j |f|_ |j |f|_ d|jj |jj f|_ |jj |_ d|j f|_dS(Niÿÿÿÿtloader(RtinspectRQt_use_mapper_pathRRtwith_polymorphic_mappersR"t_entity_for_mappertpropRRt_wildcard_tokent_wildcard_path_loader_keyt_default_path_loader_keyt _loader_key(R RRR`tinsptsubclass_entity((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyRSÍs   cCsdjd„|jDƒƒS(Ns -> css|]}t|ƒVqdS(N(tstr(t.0telem((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pys ès(tjoinR(R ((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyt__str__çscCst|jdƒS(NR"(thasattrR`(R ((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyRPêscCs |jjS(N(R`R"(R ((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyRNîscCs|jS(N(RN(R ((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyR"òscCs ||jS(N(RN(R ((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyt entity_pathöscCs1t|ttfƒr |j|St||ƒSdS(N(t isinstancetinttsliceRR2(R RN((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyROús ( RDRFRSRkRtmemoized_propertyRPRNRJR"RmRO(((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyRZÌs  R2cBsMeZeZeZd„Zed„ƒZd„Z e Z d„Z d„Z RS(cCsº||_||_|j|_||_|j|f|_|jr¡|jr¡|jj|jdjƒr|j|jf|_q­|j|jdjf|_n |j|_||_dS(Niÿÿÿÿ( RRRRQRNRR"RRRm(R RRRN((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyRSs      cCstj|jƒjS(N(RR\RNR"(R ((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyR"scCstS(N(R (R ((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyt__bool__#scCs4t|ttfƒr |j|Stj||ƒSdS(N(RnRoRpRtdictRO(R RN((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyRO(s cCst||ƒ||<}|S(N(RZ(R Rtitem((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyt __missing__.s( RDRFR!RQR RPRSRJR"Rrt __nonzero__RORu(((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyR2s   (RGt itertoolsRtloggingtbaseRR8RRRt getLoggerRDRRR=R?tobjectRRLR3R>RZRsR2(((sO/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/path_registry.pyt s   ~ 5