%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyc

�
��4]c@sTdZddlZddlmZddlmZddlmZddlmZddlmZdd	lm	Z	dd
lm
Z
ddlmZddlmZdd
lm
Z
ddlmZddlmZddlmZddlmZddlmZejdejfd��Y�Zdefd��YZdefd��YZdS(s�Defines instrumentation of instances.

This module is usually not directly visible to user applications, but
defines a large part of the ORM's interactivity.

i����Ni(tbase(texc(t
interfaces(tATTR_WAS_SET(tINIT_OK(t	NEVER_SET(tNO_VALUE(tPASSIVE_NO_INITIALIZE(tPASSIVE_NO_RESULT(tPASSIVE_OFF(tSQL_OK(tPathRegistryi(t
inspection(tutilt
InstanceStatecBs�eZdZd0Zd0Zd0ZejZ	d1Z
d0Zd0Ze
Ze
Ze
Ze
Ze
ZeZd0Zd2Zd3Zd�Zd0Zejd��Zed��Zed��Zed��Zed��Z ed��Z!ed��Z"eej#d	�d
���Z$d�Z%eej#d	�d���Z&ed
��Z'ed��Z(ed��Z)ejd��Z*ejd��Z+ejd��Z,ed��Z-e.e
d��Z/d0d�Z0d�Z1d�Z2d�Z3ed��Z4d�Z5d�Z6d�Z7d�Z8d�Z9d�Z:d �Z;d!�Z<e.d"��Z=d#�Z>e
d$�Z?d%�Z@ed&��ZAd'�ZBed(��ZCed)��ZDed*��ZEd+�ZFe
e
d,�ZGd-�ZHd0d.�ZIe.d0d/��ZJRS(4s�tracks state information at the instance level.

    The :class:`.InstanceState` is a key object used by the
    SQLAlchemy ORM in order to track the state of an object;
    it is created the moment an object is instantiated, typically
    as a result of :term:`instrumentation` which SQLAlchemy applies
    to the ``__init__()`` method of the class.

    :class:`.InstanceState` is also a semi-public object,
    available for runtime inspection as to the state of a
    mapped instance, including information such as its current
    status within a particular :class:`.Session` and details
    about data on individual attributes.  The public API
    in order to acquire a :class:`.InstanceState` object
    is to use the :func:`.inspect` system::

        >>> from sqlalchemy import inspect
        >>> insp = inspect(some_mapped_object)

    .. seealso::

        :ref:`core_inspection_toplevel`

    cCsF|j|_||_tj||j�|_i|_t�|_	dS(N(
t	__class__tclass_tmanagertweakreftreft_cleanuptobjtcommitted_statetsettexpired_attributes(tselfRR((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt__init__Ys
		cs&tjt�fd��jD���S(saReturn a namespace representing each attribute on
        the mapped object, including its current value
        and history.

        The returned object is an instance of :class:`.AttributeState`.
        This object allows inspection of the current data
        within an attribute as well as attribute history
        since the last flush.

        c3s$|]}|t�|�fVqdS(N(tAttributeState(t.0tkey(R(sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pys	<genexpr>us(R
tImmutablePropertiestdictR(R((RsG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytattrshscCs|jdko|jS(syReturn true if the object is :term:`transient`.

        .. seealso::

            :ref:`session_object_states`

        N(RtNonet	_attached(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt	transientxs	cCs|jdko|jS(sxReturn true if the object is :term:`pending`.


        .. seealso::

            :ref:`session_object_states`

        N(RR!R"(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytpending�s
cCs|jdk	o|jo|jS(s�Return true if the object is :term:`deleted`.

        An object that is in the deleted state is guaranteed to
        not be within the :attr:`.Session.identity_map` of its parent
        :class:`.Session`; however if the session's transaction is rolled
        back, the object will be restored to the persistent state and
        the identity map.

        .. note::

            The :attr:`.InstanceState.deleted` attribute refers to a specific
            state of the object that occurs between the "persistent" and
            "detached" states; once the object is :term:`detached`, the
            :attr:`.InstanceState.deleted` attribute **no longer returns
            True**; in order to detect that a state was deleted, regardless
            of whether or not the object is associated with a
            :class:`.Session`, use the :attr:`.InstanceState.was_deleted`
            accessor.

        .. versionadded: 1.1

        .. seealso::

            :ref:`session_object_states`

        N(RR!R"t_deleted(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytdeleted�scCs|jS(s�Return True if this object is or was previously in the
        "deleted" state and has not been reverted to persistent.

        This flag returns True once the object was deleted in flush.
        When the object is expunged from the session either explicitly
        or via transaction commit and enters the "detached" state,
        this flag will continue to report True.

        .. versionadded:: 1.1 - added a local method form of
           :func:`.orm.util.was_deleted`.

        .. seealso::

            :attr:`.InstanceState.deleted` - refers to the "deleted" state

            :func:`.orm.util.was_deleted` - standalone function

            :ref:`session_object_states`

        (R%(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytwas_deleted�scCs |jdk	o|jo|jS(s{Return true if the object is :term:`persistent`.

        An object that is in the persistent state is guaranteed to
        be within the :attr:`.Session.identity_map` of its parent
        :class:`.Session`.

        .. versionchanged:: 1.1 The :attr:`.InstanceState.persistent`
           accessor no longer returns True for an object that was
           "deleted" within a flush; use the :attr:`.InstanceState.deleted`
           accessor to detect this state.   This allows the "persistent"
           state to guarantee membership in the identity map.

        .. seealso::

            :ref:`session_object_states`

            N(RR!R"R%(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt
persistent�scCs|jdk	o|jS(sxReturn true if the object is :term:`detached`.

        .. seealso::

            :ref:`session_object_states`

        N(RR!R"(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytdetached�s	ssqlalchemy.orm.sessioncCs|jdk	o|j|jkS(N(t
session_idR!t	_sessions(Rt
sessionlib((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyR"�scCs5||jkr1t|j�|_t|j|<ndS(s|Track the last known value of a particular key after expiration
        operations.

        .. versionadded:: 1.3

        N(t_last_known_valuesRR(RR((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_track_last_known_value�scCs
|j|�S(sReturn the owning :class:`.Session` for this instance,
        or ``None`` if none available.

        Note that the result here can in some cases be *different*
        from that of ``obj in session``; an object that's been deleted
        will report as not ``in session``, however if the transaction is
        still in progress, this attribute will still refer to that session.
        Only when the transaction is completed does the object become
        fully detached under normal circumstances.

        (t_state_session(RR,((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytsession�scCs
|j�S(sMReturn the mapped object represented by this
        :class:`.InstanceState`.(R(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytobject	scCs"|jdkrdS|jdSdS(s�Return the mapped identity of the mapped object.
        This is the primary key identity as persisted by the ORM
        which can always be passed directly to
        :meth:`.Query.get`.

        Returns ``None`` if the object has no primary key identity.

        .. note::
            An object which is :term:`transient` or :term:`pending`
            does **not** have a mapped identity until it is flushed,
            even if its attributes include primary key values.

        iN(RR!(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytidentityscCs|jS(s�Return the identity key for the mapped object.

        This is the key used to locate the object within
        the :attr:`.Session.identity_map` mapping.   It contains
        the identity as returned by :attr:`.identity` within it.


        (R(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytidentity_key#scCsiS(N((R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytparents1scCsiS(N((R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_pending_mutations5scCs
|jjS(s8Return the :class:`.Mapper` used for this mapped object.(Rtmapper(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyR69scCs
t|j�S(s�Return ``True`` if this object has an identity key.

        This should always have the same value as the
        expression ``state.persistent or state.detached``.

        (tboolR(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pythas_identity>sc
Cs�|jjpd}|jjp!d}|jjp3d}|jjpEd}xX|D]P}|j}	|jdk}
|
ox|	}d|_|r�|jr�|`n|r|r�|dk	r|j	�}|dk	r�|||�q�qq�|dk	r�|j	�}|dk	r|||�qq�nz|	rY|dk	rY|j	�}|dk	r�|||�q�n=|
r�|dk	r�|j	�}|dk	r�|||�q�nd|_
qOWdS(N(tdispatchtpersistent_to_detachedR!tdeleted_to_detachedtpending_to_transienttpersistent_to_transientR%RR*Rt_strong_obj(
RtstatesR0tto_transientR:R;R<R=tstateR&R$R(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_detach_statesHs<
			cCs0|rtj|g|�nd|_|_dS(N(RRBR!R*R>(RR0((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_detachqscCs|j�|`dS(N(RCR(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_disposews
cCsXtdkrdS|j�}|dk	r>|j|�|`nd|_|_|`dS(s�Weakref callback cleanup.

        This callable cleans out the state when it is being garbage
        collected.

        this _cleanup **assumes** that there are no strong refs to us!
        Will not work otherwise!

        N(RR!t_instance_dictt
_fast_discardR*R>R(RRt
instance_dict((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyR{s
	cCsdS(N(R!(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyR�scCs-|j�}|dk	r%tj|�SiSdS(sReturn the instance dict used by the object.

        Under normal circumstances, this is always synonymous
        with the ``__dict__`` attribute of the mapped object,
        unless an alternative instrumentation system has been
        configured.

        In the case that the actual object has been garbage
        collected, this accessor returns a blank dictionary.

        N(RR!RRG(Rto((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyR�s

cOs�|d|d|d}}}|j}|jj|||�y|j|d|�SWn0tj��|jj|||�WdQXnXdS(Niii(RR9tinitt
original_initR
tsafe_reraisetinit_failure(tmixedtkwargsRtinstancetargsR((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_initialize_instance�s 	
cCs |j|jj||j|�S(N(Rtimpltget_historyR(RRtpassive((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyRS�scCs|j|jS(N(RRR(RR((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytget_impl�scCs-||jkr"t�|j|<n|j|S(N(R5tPendingCollection(RR((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_get_pending_mutation�sc
sli�j�d6}|j�fd�dD���jrO�jj�|d<n�jj�|�|d<|S(NROc3s1|]'}|�jkr|�j|fVqdS(N(t__dict__(Rtk(R(sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pys	<genexpr>�s
RR5tmodifiedtexpiredt	callablesRR4tload_optionsRRtinfot	load_pathR(RR5RZR[R\RR4R]RRR^(RtupdateR_t	serializeRt
_serialize(Rt
state_dict((RsG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt__getstate__�s$	cCs||d}|dk	r=tj||j�|_|j|_nd|_|d|_|jdi�|_|jdi�|_	|jdi�|_
|jdt�|_|jdt�|_
d|kr�|jj|d�nd	|krv|d	|_y|d
|_Wq�tk
rrt�|_xKt|j�D]6}|j||kr5|jj|�|j|=q5q5Wq�Xn(d
|kr�|d
|_nt�|_|jjgdD]"}||kr�|||f^q��|jr?y|jd
|_Wq?tk
r;t|j�d
kst�|jd|_d|_q?Xnd|krdtj|d�|_n|d|||�dS(NRORRR5R4RZR[R^R\RRR]iR_R(RR](N(R!RRRRRRtgetRR5R4tFalseRZR[R^R`R\RtKeyErrorRtlisttaddRXRtidentity_tokent
IndexErrortlentAssertionErrorRtdeserializeR_(RRctinstRY((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt__setstate__�sP
	


	
#	
cCs~|j|d�}|dk	rK|j|jjrK|j|jj|�n|jj|�|jrz|jj|d�ndS(sKRemove the given attribute and any
           callables associated with it.N(	tpopR!RRRt
collectiont_invalidate_collectionRtdiscardR\(Rtdict_Rtold((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_resets	cCs(d|jkr$t|j�|_ndS(NR\(RXRR\(Rtfrom_((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_copy_callables%scsD|�j��jr.���fd�}n��fd�}|S(NcsZd|jkri|_n|j�d�}|dk	rI�j|�n�|j�<dS(NR\(RXR\RqR!Rs(RARutrowRv(tfnRRR(sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt
_set_callable.scs,d|jkri|_n�|j�<dS(NR\(RXR\(RARuRz(R{R(sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyR|8s(RRRr(tclsRR{RR|((R{RRRsG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt"_instance_level_callable_processor)s

	
cs�t|_|jr8|j|�|jj�t|_nd|_d|j	kr]|j	d=nd|j	kry|j	d=n|j
jg|jj
D]'}|js�|j�kr�|j^q��|jr�x*|j
j|j�D]}|j|=q�Wnx8|jjj��D]!}�j|�}t|j_q	W|jr]|jj�fd�|jD��nx$|jjj��D]
}�|=qsW|jjj|d�dS(NR5R4c3s+|]!}|�kr|�|fVqdS(N((RRY(Ru(sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pys	<genexpr>as(tTrueR[RZRtRtclearRfR!R>RXRR`Rt_scalar_loader_implstexpire_missingRR\tintersectiont_collection_impl_keysRqt_sa_adaptertinvalidatedR-t_all_key_setR9texpire(RRutmodified_setRRRYRrR((RusG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_expire?s4		

	

	(			c	CsI|jjdd�}|j}x|D]}|j|j}|jr�|re|js%||kreq%n|jj	|�|r�||kr�||=q�n|j
|t�}|jr�|tk	r�|j
|�n|jr�||jkr�|tk	r�||j|<n|jj
|d�|r%|j
|d�q%q%W|jjj||�dS(NR5(RXReR!R\RRRtaccepts_scalar_loadert	callable_RRiRqRRrRsR-RR9R�(	RRutattribute_namest	no_loaderR$R\RRRRv((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_expire_attributesis*	
	
	cCsG|t@stS|jj|j�}|jj||�|jj�tS(s�__call__ allows the InstanceState to act as a deferred
        callable for loading expired attributes, which is also
        serializable (picklable).

        (	R
RRR�t
unmodifiedRtdeferred_scalar_loaderR�R(RRARTttoload((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt
_load_expired�s

cCst|j�j|j�S(s8Return the set of keys which have no uncommitted changes(RRt
differenceR(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyR��scCs"t|�j|j�j|j�S(s*Return self.unmodified.intersection(keys).(RR�RR�R(Rtkeys((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytunmodified_intersection�scCs%t|j�j|j�j|j�S(s�Return the set of keys which do not have a loaded value.

        This includes expired attributes and any other attribute that
        was never populated or modified.

        (RRR�RR(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytunloaded�s	cs#�jj�fd��jD��S(s�Return the set of keys which do not have a loaded value.

        This includes expired attributes and any other attribute that
        was never populated or modified.

        c3s(|]}�j|jjr|VqdS(N(RRRR�(Rtattr(R(sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pys	<genexpr>�s(R�R�R(R((RsG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytunloaded_expirable�s	cs#�jj�fd��jD��S(Nc3s(|]}�j|jjr|VqdS(N(RRRR�(RR�(R(sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pys	<genexpr>�s(R�R�R(R((RsG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_unloaded_non_object�s	cCsdS(N(R!(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyRE�scCs�|r�|jsdS|rA|j|krAtjd|j��n|j|jksY|r�|r�|tkr�|j|kr�||j}q�n|dttfkr�|j|�}q�n||j|j<n|j|j	kr�t|j	|j<q�n|j
r
|jdks|jr�t
|_|j�}|rB|jj|�n|j�}|j
rc||_n|dkr�|r�tjd|j|jtj|�f��q�ndS(NsHCan't flag attribute '%s' modified; it's not present in the object statesaCan't emit change event for attribute '%s' - parent object of type %s has been garbage collected.(tsend_modified_eventsRtsa_exctInvalidRequestErrorRRR!RtcopyR-R*R>RZRREt	_modifiedRiRtorm_exctObjectDereferencedErrorRRtstate_class_str(RRuR�tpreviousRrtis_userlandRGRo((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_modified_event�s:	"		cCs�x!|D]}|jj|d�qWt|_|jjt|�j|��|j	r�x6t|j	�j|�j|�D]}|j	|=qwWndS(s8Commit attributes.

        This is used by a partial-attribute load operation to mark committed
        those attributes which were refreshed from the database.

        Attributes marked as "expired" can potentially remain "expired" after
        this step if a value was not populated in state.dict.

        N(
RRqR!RfR[Rtdifference_updateRR�R\(RRuR�R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_commits

			%cCs|j||fg|�dS(sScommit all attributes unconditionally.

        This is used after a flush() or a full load/refresh
        to remove all pending state from the instance.

         - all attributes are marked as "committed"
         - the "strong dirty reference" is removed
         - the "modified" flag is set to False
         - any "expired" markers for scalar attributes loaded are removed.
         - lazy load callables for objects / collections *stay*

        Attributes marked as "expired" can potentially remain
        "expired" after this step if a value was not populated in state.dict.

        N(t_commit_all_states(RRuRG((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt_commit_all scCs�x�|D]�\}}|j}|jj�d|kr?|d=n|jj|�|rq|jrq|jj|�nt|_|_	d|_qWdS(s.Mass / highly inlined version of commit_all().R5N(RXRR�RR�RZR�RtRfR[R!R>(Rtiter_RGRARuRc((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyR�2s	

N((((Kt__name__t
__module__t__doc__R!R*RtrunidR
t	EMPTY_SETR]R_tinsert_orderR>RfRZR[R%t
_load_pendingt_orphaned_outside_of_sessionRtis_instanceRjR-R\RRtmemoized_propertyR tpropertyR#R$R&R'R(R)tdependenciesR"R.R0R1R2R3R4R5R6R8tclassmethodRBRCRDRRRRQRSRURWRdRpRwRyR~R�R�R�R�R�R�R�R�RER�R�R�R�(((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyR"s�			
(									:			*				.	RcBsMeZdZd�Zed��Zed��Zed��Zd�ZRS(s�Provide an inspection interface corresponding
    to a particular attribute on a particular mapped object.

    The :class:`.AttributeState` object is accessed
    via the :attr:`.InstanceState.attrs` collection
    of a particular :class:`.InstanceState`::

        from sqlalchemy import inspect

        insp = inspect(some_mapped_object)
        attr_state = insp.attrs.some_attribute

    cCs||_||_dS(N(RAR(RRAR((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyRVs	cCs|jjj|jt�S(s�The current value of this attribute as loaded from the database.

        If the value has not been loaded, or is otherwise not present
        in the object's dictionary, returns NO_VALUE.

        (RARReRR(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytloaded_valueZscCs,|jj|jj|jj�|jj�S(s�Return the value of this attribute.

        This operation is equivalent to accessing the object's
        attribute directly or via ``getattr()``, and will fire
        off any pending loader callables if needed.

        (RARRt__get__RR(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytvalueds	cCs|jj|jt�S(sXReturn the current **pre-flush** change history for
        this attribute, via the :class:`.History` interface.

        This method will **not** emit loader callables if the value of the
        attribute is unloaded.

        .. note::

            The attribute history system tracks changes on a **per flush
            basis**. Each time the :class:`.Session` is flushed, the history
            of each attribute is reset to empty.   The :class:`.Session` by
            default autoflushes each time a :class:`.Query` is invoked.  For
            options on how to control this, see :ref:`session_flushing`.


        .. seealso::

            :meth:`.AttributeState.load_history` - retrieve history
            using loader callables if the value is not locally present.

            :func:`.attributes.get_history` - underlying function

        (RARSRR(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pythistoryqscCs|jj|jttA�S(sReturn the current **pre-flush** change history for
        this attribute, via the :class:`.History` interface.

        This method **will** emit loader callables if the value of the
        attribute is unloaded.

        .. note::

            The attribute history system tracks changes on a **per flush
            basis**. Each time the :class:`.Session` is flushed, the history
            of each attribute is reset to empty.   The :class:`.Session` by
            default autoflushes each time a :class:`.Query` is invoked.  For
            options on how to control this, see :ref:`session_flushing`.

        .. seealso::

            :attr:`.AttributeState.history`

            :func:`.attributes.get_history` - underlying function

        .. versionadded:: 0.9.0

        (RARSRR	R(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytload_history�s(	R�R�R�RR�R�R�R�R�(((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyRGs
	

RVcBs)eZdZd�Zd�Zd�ZRS(sA writable placeholder for an unloaded collection.

    Stores items appended to and removed from a collection that has not yet
    been loaded. When the collection is loaded, the changes stored in
    PendingCollection are applied to it to produce the final result.

    cCs"tj�|_tj�|_dS(N(R
tIdentitySett
deleted_itemstOrderedIdentitySettadded_items(R((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyR�scCs6||jkr"|jj|�n|jj|�dS(N(R�tremoveR�Ri(RR�((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pytappend�scCs6||jkr"|jj|�n|jj|�dS(N(R�R�R�Ri(RR�((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyR��s(R�R�R�RR�R�(((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyRV�s		(R�RtRRR�RRRRRRRR	R
t
path_registryRR�RR
t_self_inspectstInspectionAttrInfoRR1RRV(((sG/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/state.pyt<module>
s.	���'`

Zerion Mini Shell 1.0