/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/loading.pyo (20549B)
 4]c@@sdZddlmZddlZddlmZddlmZddlmZddlm Z dd l m Z dd l m Z dd l mZdd l mZd dlmZd dlm Z d dlm Ze jZdZe jdedZdZeeedZeeeedZeeedZeeeedZdZdZ dZ!dZ"dZ#de$fdYZ%dZ&dS(sprivate module containing functions used to convert database rows into object instances and associated state. the functions here are called primarily by Query, Mapper, as well as some of the attribute loading strategies. i(tabsolute_importNi(t attributes(texc(t path_registry(tstrategy_options(t_DEFER_FOR_STATE(t_SET_DEFERRED_EXPIRED(t _none_set(t state_stri(tutilc#@s#t|_i|_j}j oJtjdkoJjdj}|rt|rbt}qtfd}ny~t t gjD]}|j ||^q\}}|st j d|} nxtri|_jr |jj} | sPqn |j} |rG|d} g| D]} | | ^q,} n8g| D]+} | g|D]} | | ^q^^qN} x-|jjD]\}}|j||qW|rt j| |} nx| D] } | VqWjsPqqWWn*tk r}|jt j|nXdS(s$Return an ORM result as an iterator.iic@s tdtj|DS(Ncs@s0|]&\}}|jr$t|n|VqdS(N(tuse_id_for_hashtid(t.0tenttitem((sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pys 8s(ttupletzipt _entities(trow(tquery(sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pyt filter_fn6stresultN(t _new_runidtrunidtpost_load_pathst_has_mapper_entitiest_only_return_tuplestlenRtsupports_single_entityR tlistRt row_processorR tlightweight_named_tupletTruetpartialst _yield_pert fetchmanytfetchalltitemstinvoket unique_listt Exceptiontclosetraise_from_cause(Rtcursortcontexttfilteredt single_entityRt query_entitytprocesstlabelst keyed_tupletfetchtprocRtrowstpatht post_loadterr((RsI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pyt instances#sP     4     "5     ssqlalchemy.orm.queryc C@s|j}|r|jn|j}zt|_t|jdk}|rt|jd|jrg|D]<}|jt j |t j |d|didi^ql}qt |}ngt |jD]$\} } t| |jr| ^q} g}g|jD]} | j^q } tjd| }x|D]}t |}xc| D][} || dk rQ|jt j || t j || d|didi||     I   cC@s|jj|}|dk rtj|}|jr|tj@sJtjS|tj@s[|Sy|j ||Wqt j k r|j |gdSXn|SdSdS(sqLook up the given key in the given session's identity map, check the object for expired state if found. N( t identity_maptgetRHRRDtexpiredtSQL_OKtPASSIVE_NO_RESULTtRELATED_OBJECT_OKt _load_expiredtorm_exctObjectDeletedErrort_remove_newly_deleted(R=tkeytpassiveRMtstate((sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pytget_from_identitys    c C@sR|dk r#|d}|d}n d}}t||d|d|d|d|S(s.Load the given identity key from the database.iit refresh_statetwith_for_updatetonly_load_propstidentity_tokenN(RHtload_on_pk_identity(RR^RbRcRdtidentRe((sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pyt load_on_idents    c C@s|dkr%|j}|jn |j}|dk r%|j}|j\}} d|krtgt|j|D]%\} } | dkrz| | j^qz} t j || }n|j |t t }||_tgt||jD]\} }| |j| f^q}||_n|dk rCt }||_n*|jdk rgt }|j|_nt }|jdt|d|d|d|d|d|_y|jSWntjk rdSXdS(s6Load the given primary key identity from the database.tpopulate_existingt version_checkRdRbReN(RHt_clonet_get_conditiont _mapper_zerot _get_clausetsetRt primary_keyR^tsql_utiltadapt_criterion_to_nullt _adapt_clauseR R@t _criteriontdictt_paramst_for_update_argt _get_optionstboolt _order_bytoneR[t NoResultFound(Rtprimary_key_identityRbRcRdRetqtmapperRnt _get_paramstcoltvaluetnonestid_valRptparamsRj((sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pyRfsN       " 5      c  K@s|r|j|} n |j} i} |j|jd| xT| D]L} |re| j|kreqDn| j||||d|d|d| | qDW|dk r||jk r|r|j|} n|} |j | ndS(Ntmemoized_setupsRdtcolumn_collectiontmemoized_populators( t_iterate_polymorphic_propertiest_polymorphic_propertiesRoRR^tsetupRHtpolymorphic_ontcolumnsRI(R,RR/R6tadapterRtwith_polymorphicRdtpolymorphic_discriminatortkwtpoly_propertiestquick_populatorsRtpd((sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pyt_setup_entity_querys0      c @sq j r2g D]} j| ^q n jtjt j} d k r| j fd D} n|j j dt } x/| D]'} | | kr| | } | t krdj | j| jfq| tkrdj | jtfqd }rNj| }|d k rN|j|t}qNn|si|j| t}n|rdj | j|fq| j| |q| j| |qWjjjjrjj|n|jjjp jt jjjt jjj tjjj! rnjjj! nt j"t j#jj$j%j&j' ru|d k rud|jf}|j krj |j(dt)ffkr j*j |j+d|}n j*d |}|ru||k rut,||}t-j.|j/|||qunt-j0 rjd kr j1qnd  j2rt j3n t j fd } j4rm| rm rmt5| |||}n|S( s`Produce a mapper level row processor callable which processes rows into mapped instances.c3@s|]}j|VqdS(N(t_props(R tk(R(sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pys psRtnewtexpiretquicktloadertselectinload_polymorphictentitiesc @s7rB}|j}|}|jk}t}t}ntg D]}||^qOf}j|}|dk r|}|}|jk}| }t}r^| r^t |||q^nx|drdSt}t}t} jj }|}|}||_ |_ |_ j |||sjr|rs} r|_|_nt||||| |rg|rr|jjj|n r# j|jq#n"r#|jjj| ns2|jrgrQ rQ|j| qd|j|qgnr3j|tq3n|j} |jk}| s| sdrt||||| } |rr|jjj|| n|j|| qnr3jr3j|tn|S(Niteager(tobjRR R@RRURHt_validate_version_idt class_managert new_instanceR^Ret session_idt_add_unpresentt load_optionst load_patht_populate_fulltmanagertdispatchR:R=trefreshtmodifiedt_committ _commit_allt add_statetunloadedR!t_populate_partialtinvoke_all_eagers( RR`RMtdict_tisnewt currentloadtloaded_instancetcolumnt identitykeyRtto_load(RR,tidentity_classReRERDtis_not_primary_keytload_evtRtloaded_as_persistentRRdtpersistent_evttpk_colsRit populatorsR7tpropagate_optionst refresh_evttrefresh_identity_keyRbRRtsession_identity_mapRj(sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pyt _instances                     N(6RpRt_identity_classt collectionst defaultdictRt _prop_setRHt intersectionRURRRRIR^t_deferred_column_loaderRR@t_gettertcreate_row_processorRRt _current_pathR6R=RTRitalways_refreshRyRRR:RRRDREthash_keyRjRRetstrategyR t_should_selectin_loadt local_optst_load_subclass_via_intPostLoadtcallable_for_pathRt for_contextt_identity_key_from_statetallow_partial_pkst issupersettpolymorphic_mapt_decorate_polymorphic_switch(RR,RR6RRdRbRt_polymorphic_fromtctpropsRtpropRtgettert adapted_colR^tselectin_load_viat callable_R((RR,RReRERDRRRRRRdRRRiRR7RRRRbRRRRjsI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pyt_instance_processorQs #   "                         W c@ss|j}t|jjdk|jrE|j|\n|j\fd}|S(Nic @s|j}jf|jf|jd|}|jrQ|jdn||jjdg|D]0\}}r|jddn |jd^qjj dS(Nt cache_pathcS@s |jS(N(Ri(R~((sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pyttt primary_keysii( Rt_with_lazyload_optionst _with_optionstparentt_populate_existingt add_criteriaR=RR^tall( R,R6tstatest load_onlyteffective_entityt orig_querytq2R`t load_attrs(t disable_optt enable_optR~tzero_idx(sI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pytdo_loads    (RRt base_mapperRptis_aliased_classt_subclass_load_via_int_subclass_load_via_in_mapper(R,R6tentityRR((RRR~RsI/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/loading.pyRs  c C@s|r|j|_x(|dD]\} } | ||| sL   I 5  L / , 9 "  4: