HEX
Server: LiteSpeed
System: Linux us-phx-web1284.main-hosting.eu 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: u300739242 (300739242)
PHP: 8.2.30
Disabled: system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyc
�
���ec@s�dZddlZddlmZddlmZddlmZddlmZddlmZdd	lmZdd
l	m
Z
ddlmZd�Z
ejd
�Zdejfd��YZdefd��YZdefd��YZdefd��YZdeefd��YZdefd��YZdefd��YZdefd��YZejd�Zdefd ��YZd!efd"��YZdS(#s�Contain the ``AssociationProxy`` class.

The ``AssociationProxy`` is a Python property object which provides
transparent proxied access to the endpoint of an association object.

See the example ``examples/association/proxied_association.py``.

i����Ni(texc(tinspect(torm(tutil(tcollections(t
interfaces(tor_(tColumnOperatorscKst|||�S(s�Return a Python property implementing a view of a target
    attribute which references an attribute on members of the
    target.

    The returned value is an instance of :class:`.AssociationProxy`.

    Implements a Python property representing a relationship as a collection
    of simpler values, or a scalar value.  The proxied property will mimic
    the collection type of the target (list, dict or set), or, in the case of
    a one to one relationship, a simple scalar value.

    :param target_collection: Name of the attribute we'll proxy to.
      This attribute is typically mapped by
      :func:`~sqlalchemy.orm.relationship` to link to a target collection, but
      can also be a many-to-one or non-scalar relationship.

    :param attr: Attribute on the associated instance or instances we'll
      proxy for.

      For example, given a target collection of [obj1, obj2], a list created
      by this proxy property would look like [getattr(obj1, *attr*),
      getattr(obj2, *attr*)]

      If the relationship is one-to-one or otherwise uselist=False, then
      simply: getattr(obj, *attr*)

    :param creator: optional.

      When new items are added to this proxied collection, new instances of
      the class collected by the target collection will be created.  For list
      and set collections, the target class constructor will be called with
      the 'value' for the new instance.  For dict types, two arguments are
      passed: key and value.

      If you want to construct instances differently, supply a *creator*
      function that takes arguments as above and returns instances.

      For scalar relationships, creator() will be called if the target is None.
      If the target is present, set operations are proxied to setattr() on the
      associated object.

      If you have an associated object with multiple attributes, you may set
      up multiple association proxies mapping to different attributes.  See
      the unit tests for examples, and for examples of how creator() functions
      can be used to construct the scalar relationship on-demand in this
      situation.

    :param \*\*kw: Passes along any other keyword arguments to
      :class:`.AssociationProxy`.

    (tAssociationProxy(ttarget_collectiontattrtkw((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytassociation_proxys4tASSOCIATION_PROXYRcBs�eZdZeZeZd
d
d
d
d
ed�Z	d�Z
d�Zd�Zd
d�Z
d�Zd�Zd�Zd	�ZRS(sDA descriptor that presents a read/write view of an object attribute.c		Csz||_||_||_||_||_||_||_dt|�j|t	|�f|_
|rv||_ndS(sConstruct a new :class:`.AssociationProxy`.

        The :func:`.association_proxy` function is provided as the usual
        entrypoint here, though :class:`.AssociationProxy` can be instantiated
        and/or subclassed directly.

        :param target_collection: Name of the collection we'll proxy to,
          usually created with :func:`_orm.relationship`.

        :param attr: Attribute on the collected instances we'll proxy
          for.  For example, given a target collection of [obj1, obj2], a
          list created by this proxy property would look like
          [getattr(obj1, attr), getattr(obj2, attr)]

        :param creator: Optional. When new items are added to this proxied
          collection, new instances of the class collected by the target
          collection will be created.  For list and set collections, the
          target class constructor will be called with the 'value' for the
          new instance.  For dict types, two arguments are passed:
          key and value.

          If you want to construct instances differently, supply a 'creator'
          function that takes arguments as above and returns instances.

        :param cascade_scalar_deletes: when True, indicates that setting
         the proxied value to ``None``, or deleting it via ``del``, should
         also remove the source object.  Only applies to scalar attributes.
         Normally, removing the proxied target will not remove the proxy
         source, as this object may have other state that is still to be
         kept.

         .. versionadded:: 1.3

         .. seealso::

            :ref:`cascade_scalar_deletes` - complete usage example

        :param getset_factory: Optional.  Proxied attribute access is
          automatically handled by routines that get and set values based on
          the `attr` argument for this proxy.

          If you would like to customize this behavior, you may supply a
          `getset_factory` callable that produces a tuple of `getter` and
          `setter` functions.  The factory is called with two arguments, the
          abstract type of the underlying collection and this proxy instance.

        :param proxy_factory: Optional.  The type of collection to emulate is
          determined by sniffing the target collection.  If your collection
          type can't be determined by duck typing or you'd like to use a
          different collection implementation, you may supply a factory
          function to produce those collections.  Only applicable to
          non-scalar relationships.

        :param proxy_bulk_set: Optional, use with proxy_factory.  See
          the _set() method for details.

        :param info: optional, will be assigned to
         :attr:`.AssociationProxy.info` if present.

         .. versionadded:: 1.0.9

        s	_%s_%s_%sN(R	t
value_attrtcreatortgetset_factoryt
proxy_factorytproxy_bulk_settcascade_scalar_deletesttypet__name__tidtkeytinfo(	tselfR	R
RRRRRR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__init__csI							cCs9|dkr|S|j||�}|r5|j|�S|S(N(tNonet_as_instancetget(Rtobjtclass_tinst((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__get__�s
cCs(t|�}|j||�j||�S(N(RRtset(RRtvaluesR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__set__�scCs%t|�}|j||�j|�S(N(RRtdelete(RRR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt
__delete__�scCs|j||�S(s�Return the internal state local to a specific mapped class.

        E.g., given a class ``User``::

            class User(Base):
                # ...

                keywords = association_proxy('kws', 'keyword')

        If we access this :class:`.AssociationProxy` from
        :attr:`_orm.Mapper.all_orm_descriptors`, and we want to view the
        target class for this proxy as mapped by ``User``::

            inspect(User).all_orm_descriptors["keywords"].for_class(User).target_class

        This returns an instance of :class:`.AssociationProxyInstance` that
        is specific to the ``User`` class.   The :class:`.AssociationProxy`
        object remains agnostic of its parent class.

        :param class\_: the class that we are returning state for.

        :param obj: optional, an instance of the class that is required
         if the attribute refers to a polymorphic target, e.g. where we have
         to look at the type of the actual destination object to get the
         complete path.

        .. versionadded:: 1.3 - :class:`.AssociationProxy` no longer stores
           any state specific to a particular parent class; the state is now
           stored in per-class :class:`.AssociationProxyInstance` objects.


        (R(RRR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt	for_class�s!cCs�y|j|jd}Wntk
r1d}nX|dkr�|j|�}|dk	r�tj|||�}t||jd|�q�d}n|dk	r�|jr�|j	|�S|SdS(Nt_inst(
t__dict__RtKeyErrorRt_calc_ownertAssociationProxyInstancet	for_proxytsetattrt
_is_canonicalt_non_canonical_get_for_object(RRRR towner((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�s

	
cCs9yt|�}Wntjk
r'dSX|jjjSdS(N(RRtNoInspectionAvailableRtmappert
class_managerR(Rt
target_clstinsp((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR+s
cs^|j�tj����fd�}|tkrE�fd�}n�fd�}||fS(Ncs|dk	r�|�SdS(N(R(ttarget(t_getter(sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytgetterscst|�|�dS(N(R.(totktv(R
(sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytsetter$scst|�|�dS(N(R.(R:R<(R
(sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR=)s(Rtoperatort
attrgettertdict(Rtcollection_classR9R=((R8R
sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt_default_getsets	cCsd|j|jfS(NsAssociationProxy(%r, %r)(R	R(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__repr__.sN(Rt
__module__t__doc__tTruetis_attributeR
textension_typeRtFalseRR!R$R&R'RR+RBRC(((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR]s"P			#			R,cBsaeZdZd�ZdZed��Zed��Zd�Z	e
d��Zd�Zed��Z
ejd��Ze
d	��Ze
d
��Ze
d��Zejd��Zejd
��Ze
d��Zd�Zd�Ze
d��Zd�Zd�Zd�Zd�Zd�Zd�Zdd�Z dd�Z!dd�Z"d�Z#RS(s�A per-class object that serves class- and object-specific results.

    This is used by :class:`.AssociationProxy` when it is invoked
    in terms of a specific class or instance of a class, i.e. when it is
    used as a regular Python descriptor.

    When referring to the :class:`.AssociationProxy` as a normal Python
    descriptor, the :class:`.AssociationProxyInstance` is the object that
    actually serves the information.   Under normal circumstances, its presence
    is transparent::

        >>> User.keywords.scalar
        False

    In the special case that the :class:`.AssociationProxy` object is being
    accessed directly, in order to get an explicit handle to the
    :class:`.AssociationProxyInstance`, use the
    :meth:`.AssociationProxy.for_class` method::

        proxy_state = inspect(User).all_orm_descriptors["keywords"].for_class(User)

        # view if proxy object is scalar or not
        >>> proxy_state.scalar
        False

    .. versionadded:: 1.3

    cCsI||_|j|_||_|j|_d|_||_||_dS(N(tparentRtowning_classR	RRAttarget_classR(RRJRKRLR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRSs				c
Cs|j}|j}tj|�j|�}t|tj�sXtjt	d�dd�n|jj}y|j
||�}Wnhtk
r�t||||�Stk
r�}	tjtjd|j|j|j|	f�d|	�nX|j|||||�SdS(NsEassociation proxy to a non-relationship intermediary is not supportedtreplace_contextslAssociation proxy received an unexpected error when trying to retreive attribute "%s.%s" from class "%s": %stfrom_(R	RRtclass_mappertget_propertyt
isinstancetRelationshipPropertyRtraise_tNotImplementedErrorRR3Rt_cls_unwrap_target_assoc_proxytAttributeErrort!AmbiguousAssociationProxyInstancet	ExceptionRtInvalidRequestErrorRt_construct_for_assoc(
tclsRJRKtparent_instanceR	RtpropRLttarget_assocterr((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR-es4			


cCs�|dk	rt||||�St||�}t|d�sPt||||�S|j}|rrt||||�St||||�SdS(Nt_is_internal_proxy(RtObjectAssociationProxyInstancetgetattrthasattrRWt_impl_uses_objectstColumnAssociationProxyInstance(R[R^RJRKRLRR
t	is_object((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRZ�s	cCstj|j�j|j�S(N(RRORKRPR	(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt
_get_property�scCs
|j�jS(N(Rgt
comparator(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt_comparator�scCstd��dS(NsqThe association proxy can't be used as a plain column expression; it only works inside of a comparison expression(RT(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__clause_element__�scCs,t||�}t|ttf�r(|SdS(N(RbRQRR,R(R[RLRR
((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRU�scCs|j|j|j�S(N(RURLR(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt_unwrap_target_assoc_proxy�scCst|j|j�S(s�The 'remote' class attribute referenced by this
        :class:`.AssociationProxyInstance`.

        .. seealso::

            :attr:`.AssociationProxyInstance.attr`

            :attr:`.AssociationProxyInstance.local_attr`

        (RbRLR(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytremote_attr�scCst|j|j�S(s�The 'local' class attribute referenced by this
        :class:`.AssociationProxyInstance`.

        .. seealso::

            :attr:`.AssociationProxyInstance.attr`

            :attr:`.AssociationProxyInstance.remote_attr`

        (RbRKR	(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt
local_attr�scCs|j|jfS(s�Return a tuple of ``(local_attr, remote_attr)``.

        This attribute was originally intended to facilitate using the
        :meth:`_query.Query.join` method to join across the two relationships
        at once, however this makes use of a deprecated calling style.

        To use :meth:`_sql.select.join` or :meth:`_orm.Query.join` with
        an association proxy, the current method is to make use of the
        :attr:`.AssociationProxyInstance.local_attr` and
        :attr:`.AssociationProxyInstance.remote_attr` attributes separately::

            stmt = (
                select(Parent).
                join(Parent.proxied.local_attr).
                join(Parent.proxied.remote_attr)
            )

        A future release may seek to provide a more succinct join pattern
        for association proxy attributes.

        .. seealso::

            :attr:`.AssociationProxyInstance.local_attr`

            :attr:`.AssociationProxyInstance.remote_attr`

        (RmRl(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR
�scCs'|j�j}|r#|j�n|S(ssReturn ``True`` if this :class:`.AssociationProxyInstance`
        proxies a scalar relationship on the local side.(Rgtuselistt_initialize_scalar_accessors(Rtscalar((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRps
cCs|j�jj|j�jS(N(RgR3RPRRn(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt_value_is_scalarscCs
t��dS(N(RT(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt_target_is_objectscCsY|jjr*|jjd|�\}}n|jjd�\}}|||_|_dS(N(RJRRRBt_scalar_gett_scalar_set(RRtset_((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRoscs^|j�tj����fd�}|tkrE�fd�}n�fd�}||fS(Ncs|dk	r�|�SdS(N(R(R7(R8(sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR9'scst|�|�S(N(R.(R:R;R<(R
(sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR=,scst|�|�S(N(R.(R:R<(R
(sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR=1s(RR>R?R@(RRAR9R=((R8R
sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRB#s	cCs
|jjS(N(RJR(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR6scCs�|dkr|S|jr8t||j�}|j|�Syt||j�\}}}Wntk
rjn>Xt|�|kr�t|�|kr�|jdk	s�t	�|S|j
t||j��\|_}t||jt|�t|�|f�|SdS(N(
RRpRbR	RsRRVRRAtAssertionErrort_newt_lazy_collectionR.(RRR7t
creator_idtself_idtproxy((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR:s 	

$(cCs�|jr�|jjr!|jjn|j}t||j�}|dkrt|dkrXdSt||j||��q�|j||�|dkr�|jj	r�t||jd�q�nC|j
|�}|jdk	s�t�||k	r�|j
||�ndS(N(RpRJRRLRbR	RR.RtRRRARvt
_bulk_replace(RRR#RR7R{((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR"Ss		cCss|jdkr"|j|d�n|jr_t||j�}|dk	r_t||j�q_nt||j�dS(N(RKRR+RpRbR	tdelattrR(RRR7((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR%is	cCsA|jjr|jjn|j}tj|��}|jjra||jj|||j|�fS|jjr�|jj||�\}}n|jj|�\}}|t	kr�|t
|||||�fS|tkr�|t|||||�fS|t
kr|t|||||�fStjd|jj|jf��dS(Ns�could not guess which interface to use for collection_class "%s" backing "%s"; specify a proxy_factory and proxy_bulk_set manually(RJRRLRtduck_type_collectionRRRRBtlistt_AssociationListR@t_AssociationDictR"t_AssociationSetRt
ArgumentErrorRARR	(Rtlazy_collectionRRAR9R=((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRwss0!	cCs�|jjr"|jj||�nl|jtkrA|j|�nM|jtkr`|j|�n.|jtkr|j|�ntj	d��dS(NsEno proxy_bulk_set supplied for custom collection_class implementation(
RJRRARtextendR@tupdateR"RR�(RR{R#((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt_set�scCs�|jjr|jjp|j}|jjrN|jj|j|�\}}n|jj|j�\}}||_||_||_dS(N(RJRRLRRARBR9R=(RR{RR9R=((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt_inflate�s!			cKs�|jdd�}|j}|dk	rL|jd||�}|jj|�S|jrt|j|j�}|j||�}nB|r�t	j
d��n$|r�|dk	r�t	j
d��n|}|jj|�S(Ntis_hast	criterionsJCan't apply keyword arguments to column-targeted association proxy; use ==sINon-empty has() not allowed for column-targeted association proxy; use ==(tpopRRkt_criterion_existsRiRrRbRLRRR�(RR�tkwargsR�R^tinnerR]t
value_expr((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��s"			cKsV|jdkr=|jr=|js+|jr=tjd��n|jd|dt|�S(s!Produce a proxied 'any' expression using EXISTS.

        This expression will be a composed product
        using the :meth:`.RelationshipProperty.Comparator.any`
        and/or :meth:`.RelationshipProperty.Comparator.has`
        operators of the underlying proxied attributes.

        s9'any()' not implemented for scalar attributes. Use has().R�R�N(	RkRRpRrRqRRYR�RI(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytany�s			cKsW|jdkr>|js,|jr>|jr>tjd��n|jd|dt|�S(s!Produce a proxied 'has' expression using EXISTS.

        This expression will be a composed product
        using the :meth:`.RelationshipProperty.Comparator.any`
        and/or :meth:`.RelationshipProperty.Comparator.has`
        operators of the underlying proxied attributes.

        s4'has()' not implemented for collections.  Use any().R�R�N(	RkRRpRrRqRRYR�RF(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pythas�s	
	cCsd|jj|jfS(Ns%s(%r)(t	__class__RRJ(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRCsN($RRDRERRRLtclassmethodR-RZRgtpropertyRiRjRURtmemoized_propertyRkRlRmR
RpRqRrRoRBRRR"R%RwR�R�R�R�R�RC(((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR,5s:			2		
					
	0		RWcBsteZdZeZd�Zd�Zd�Zd�Zd
d�Z
d
d�Zej
d��Zd�Zd	�ZRS(scan :class:`.AssociationProxyInstance` where we cannot determine
    the type of target object.
    cCs/td|jj|j|j|jf��dS(Ns�Association proxy %s.%s refers to an attribute '%s' that is not directly mapped on class %s; therefore this operation cannot proceed since we don't know what type of object is referred towards(RVRKRR	RRL(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt
_ambiguouss	cCs*|dkr|Stt|�j|�SdS(N(RtsuperRWR(RR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR scCs|j�dS(N(R�(RR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__eq__&scCs|j�dS(N(R�(RR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__ne__)scKs|j�dS(N(R�(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�,scKs|j�dS(N(R�(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�/scCsiS(N((R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt
_lookup_cache2scCs�|dk	r�t||j�}|dk	r�yt|�}Wntjk
rPq�X|j}|j}||jkr�|j	||�ny|j|SWq�t
k
r�q�Xq�n|S(N(RRbR	RRR2R3RR�t_populate_cacheR*(RR\t
actual_objR6R3tinstance_class((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR09s 		

cCs�tj|j�j|j�}|j|j�r�|}y|j||j�}Wnt	k
rbq�X|j
||j|j||j�|j|<ndS(N(
RRORKRPR	tisaR3RURRVRZRJR�(RR�R3R]RLR^((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�Ps
N(RRDRERIR/R�RR�R�RR�R�RR�R�R0R�(((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRWs					RacBs5eZdZeZeZd�Zd�Zd�ZRS(sEan :class:`.AssociationProxyInstance` that has an object as a target.cCs�|j}|dk	rC|jj|js6|j|�n	||k�S|jr�|jr�|jr�|jjt	|j
|j�j|��S|jr�|jr�|jr�tj
d��n|jji||j6�SdS(saProduce a proxied 'contains' expression using EXISTS.

        This expression will be a composed product
        using the :meth:`.RelationshipProperty.Comparator.any`,
        :meth:`.RelationshipProperty.Comparator.has`,
        and/or :meth:`.RelationshipProperty.Comparator.contains`
        operators of the underlying proxied attributes.
        s<contains() doesn't apply to a scalar object endpoint; use ==N(RkRRiR�RptcontainsRrRqR�RbRLRRRY(RRR^((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�ms
		
		
	cCsV|dkr8t|jji||j6�|jdk�S|jji||j6�SdS(N(RRRiR�R(RR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��s
cCs%|jjt|j|j�|k�S(N(RiR�RbRLR(RR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��s	(	RRDRERFRrR/R�R�R�(((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRags	!	RecBs,eZdZeZeZd�Zd�ZRS(sVan :class:`.AssociationProxyInstance` that has a database column as a
    target.
    cCsK|j|jjtj|��}|dkrCt||jdk�S|SdS(N(R�RltoperateR>teqRRRi(Rtothertexpr((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��s
cOs|j|jj|||��S(N(R�RlR�(RtopR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��s(	RRDRERIRrRFR/R�R�(((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRe�s
	
RxcBs,eZd�Zd�Zd�Zd�ZRS(cCs||_||_dS(N(RJR7(RRR7((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�s	cCst|j|j�S(N(RbRJR7(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__call__�scCsi|jd6|jd6S(NRR7(RJR7(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__getstate__�scCs|d|_|d|_dS(NRR7(RJR7(Rtstate((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__setstate__�s
(RRDRR�R�R�(((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRx�s			t_AssociationCollectioncBsSeZd�Zed��Zd�Zd�ZeZd�Zd�Z	d�Z
RS(cCs1||_||_||_||_||_dS(s�Constructs an _AssociationCollection.

        This will always be a subclass of either _AssociationList,
        _AssociationSet, or _AssociationDict.

        lazy_collection
          A callable returning a list-based collection of entities (usually an
          object attribute managed by a SQLAlchemy relationship())

        creator
          A function that creates new target entities.  Given one parameter:
          value.  This assertion is assumed::

            obj = creator(somevalue)
            assert getter(obj) == somevalue

        getter
          A function.  Given an associated object, return the 'value'.

        setter
          A function.  Given an associated object and a value, store that
          value on the object.

        N(R�RR9R=RJ(RR�RR9R=RJ((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�s
				cCs
|j�S(N(R�(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt<lambda>�tcCs
t|j�S(N(tlentcol(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__len__�scCs
t|j�S(N(tboolR�(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__bool__�scCsi|jd6|jd6S(NRJR�(RJR�(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs.|d|_|d|_|jj|�dS(NRJR�(RJR�R�(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��s

cCs|j�|j||�dS(N(tclearR�(Rtassoc_proxyR#((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR|�s
(RRDRR�R�R�R�t__nonzero__R�R�R|(((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��s					R�cBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zdd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z e Z!d �Z"d!�Z#d"�Z$d#�Z%d$�Z&d%�Z'xoe(e)�j*��D]X\Z+Z,e-e,�roe,je+kroe,jroe.e(e+�roe/e(e+�je,_qoqoW[+[,RS(&s(Generic, converting, list-to-list proxy.cCs
|j|�S(N(R(Rtvalue((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt_createscCs
|j|�S(N(R9(Rtobject_((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt_getscCs|j||�S(N(R=(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�scCsNt|t�s#|j|j|�Sg|j|D]}|j|�^q1SdS(N(RQtsliceR�R�(Rtindextmember((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__getitem__sc	Cs�t|t�s)|j|j||�nW|jdkrGt|�}n.|jdkrlt|�|j}n	|j}|jp�d}|jp�d}t	t
|jp�d||��}|dkrx|D]
}||=q�W|}x�|D] }|j||�|d7}q�Wntt|�t|�krItdt|�t|�f��nx4t
||�D]#\}}|j|j||�qYWdS(NiisBattempt to assign sequence of size %s to extended slice of size %s(RQR�R�R�tstopRR�tsteptstartRtrangetinsertt
ValueErrortzip(	RR�R�R�R�R�trngtititem((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__setitem__s.	!

cCs|j|=dS(N(R�(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__delitem__2scCs1x*|jD]}|j|�|kr
tSq
WtS(N(R�R�RFRI(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__contains__5scCs*g|j||!D]}|j|�^qS(N(R�R�(RR�tendR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__getslice__<scCs6g|D]}|j|�^q}||j||+dS(N(R�R�(RR�R�R#R<tmembers((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__setslice__?s"cCs|j||5dS(N(R�(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__delslice__Csccs&x|jD]}|j|�Vq
WdS(s�Iterate over proxied values.

        For the actual domain objects, iterate over .col instead or
        just use the underlying collection directly from its property
        on the parent.
        N(R�R�(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__iter__FscCs)|j}|j|�}|j|�dS(N(R�R�tappend(RR�R�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�Rs	cs8tgtj�fd�t|��D]}d^q%�S(Ncs
|�kS(N((R<(R�(sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�\R�i(tsumRtitertools_filtertiter(RR�t_((R�sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytcountWscCs"x|D]}|j|�qWdS(N(R�(RR#R<((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�as
cCs |j|�g|j||+dS(N(R�R�(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�esi����cCs|j|jj|��S(N(R9R�R�(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�hscCsGx4t|�D]&\}}||kr
|j|=dSq
Wtd��dS(Nsvalue not in list(t	enumerateR�R�(RR�R�tval((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytremoveks

cCs
t�dS(s#Not supported, use reversed(mylist)N(RT(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytreverserscCs
t�dS(s!Not supported, use sorted(mylist)N(RT(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytsortwscCs|jdt|j�5dS(Ni(R�R�(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�|scCst|�|kS(N(R(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�scCst|�|kS(N(R(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCst|�|kS(N(R(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__lt__�scCst|�|kS(N(R(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__le__�scCst|�|kS(N(R(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__gt__�scCst|�|kS(N(R(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__ge__�scCstjt|�|�S(N(RtcmpR(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__cmp__�scCs3yt|�}Wntk
r$tSXt|�|S(N(Rt	TypeErrortNotImplemented(RtiterableR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__add__�s

cCs3yt|�}Wntk
r$tSX|t|�S(N(RR�R�(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__radd__�s

cCs!t|t�stSt|�|S(N(RQtintR�R(Rtn((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__mul__�scCs|j|�|S(N(R�(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__iadd__�s
cCsZt|t�stS|dkr,|j�n*|dkrV|jt|�|d�n|S(Nii(RQR�R�R�R�R(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__imul__�s
cGst|�j||�S(N(RR�(RR�targs((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs
t|�S(N(R(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytcopy�scCstt|��S(N(treprR(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRC�scCstdt|�j��dS(Ns%s objects are unhashable(R�RR(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__hash__�s(0RRDRER�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�t__rmul__R�R�R�R�RCR�Rtlocalstitemst	func_nametfunctcallableRcRb(((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�sZ													
																		
				"
t_NotProvidedR�cBs�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd#d�Zd#d�Zd�Zejrd�Zd�Zd�Zd�Zd�Znd�Zd�Ze d�Z!d�Z"d�Z#d �Z$d!�Z%d"�Z&xoe'e(�j��D]X\Z)Z*e+e*�rie*je)krie*jrie,e-e)�rie.e-e)�je*_qiqiW[)[*RS($s(Generic, converting, dict-to-dict proxy.cCs|j||�S(N(R(RRR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs
|j|�S(N(R9(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs|j|||�S(N(R=(RR�RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs|j|j|�S(N(R�R�(RR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCsI||jkr,|j|j|||�n|j||�|j|<dS(N(R�R�R�(RRR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs|j|=dS(N(R�(RR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs
||jkS(N(R�(RR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs
||jkS(N(R�(RR((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pythas_key�scCst|jj��S(N(R�R�tkeys(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs|jj�dS(N(R�R�(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCst|�|kS(N(R@(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCst|�|kS(N(R@(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCst|�|kS(N(R@(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�scCst|�|kS(N(R@(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�scCst|�|kS(N(R@(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�scCst|�|kS(N(R@(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�	scCstjt|�|�S(N(RR�R@(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�scCstt|j���S(N(R�R@R�(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRCscCs%y||SWntk
r |SXdS(N(R*(RRtdefault((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRs
cCs8||jkr,|j||�|j|<|S||SdS(N(R�R�(RRR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt
setdefaultscCs
|jj�S(N(R�R�(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�scs�fd��jD�S(Nc3s+|]!}|�j�j|�fVqdS(N(R�R�(t.0R(R(sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pys	<genexpr>%s(R�(R((RsP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt	iteritems$scs�fd��jD�S(Nc3s%|]}�j�j|�VqdS(N(R�R�(R�R(R(sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pys	<genexpr>(s(R�(R((RsP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt
itervalues'scCs
|jj�S(N(R�titerkeys(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�*scCs)g|jj�D]}|j|�^qS(N(R�R#R�(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR#-scCs-g|D]"}||j|j|�f^qS(N(R�R�(RR;((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�0scs�fd��jD�S(Nc3s+|]!}|�j�j|�fVqdS(N(R�R�(R�R(R(sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pys	<genexpr>6s(R�(R((RsP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�5scs�fd��jD�S(Nc3s%|]}�j�j|�VqdS(N(R�R�(R�R(R(sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pys	<genexpr>9s(R�(R((RsP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR#8scCsC|tkr!|jj|�}n|jj||�}|j|�S(N(R�R�R�R�(RRR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�;scCs*|jj�}|d|j|d�fS(Nii(R�tpopitemR�(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�Bsc
Os�t|�dkr+tdt|���n�t|�dkr�|d}t|d�rxxs|D]}||||<q]Wq�y%x|D]\}}|||<q�WWq�tk
r�}tjtd�d|�q�Xnx|D]\}}	|	||<q�WdS(Nis+update expected at most 1 arguments, got %iiR�s4dictionary update sequence requires 2-element tuplesRM(R�R�RcR�RRS(
RtaRt
seq_or_mapR�R;R<R_RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�Fs$

	c	Cs�t|�}|j|pd�}t|p-d�j|�}|j|�}xR|j�p]dD]>\}}||kr�|||<q^||kr^|||<q^q^Wx|D]
}||=q�WdS(N((((R"tintersectiont
differenceR�(	RR�R#texistingt	constantst	additionstremovalsRR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR|cs

cCst|j��S(N(R@R�(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�rscCstdt|�j��dS(Ns%s objects are unhashable(R�RR(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�usN(/RRDRER�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RCRRR�R�Rtpy2kR�R�R�R#R�R�R�R�R�R|R�R�RR�R�R�R�RcR@Rb(((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��sV																															"
R�cBs�eZdZd�Zd�Zd�Zd�ZeZd�Zd�Z	d�Z
d�Zd	�Zd
�Z
d�Zd�Zd
�Zd�Zd�ZeZd�ZeZd�Zd�Zd�ZeZd�Zd�Zd�ZeZd�Zd�Zd�Z d�Z!d�Z"d�Z#d�Z$d�Z%d�Z&d �Z'd!�Z(d"�Z)d#�Z*d$�Z+xoe,e-�j.��D]X\Z/Z0e1e0�r�e0je/kr�e0jr�e2e3e/�r�e4e3e/�je0_q�q�W[/[0RS(%s&Generic, converting, set-to-set proxy.cCs
|j|�S(N(R(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs
|j|�S(N(R9(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs
t|j�S(N(R�R�(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs|jr
tStSdS(N(R�RFRI(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��s	cCs1x*|jD]}|j|�|kr
tSq
WtS(N(R�R�RFRI(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��sccs&x|jD]}|j|�Vq
WdS(s�Iterate over proxied values.

        For the actual domain objects, iterate over .col instead or just use
        the underlying collection directly from its property on the parent.

        N(R�R�(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCs,||kr(|jj|j|��ndS(N(R�taddR�(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�scCsAx:|jD]/}|j|�|kr
|jj|�Pq
q
WdS(N(R�R�tdiscard(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�scCsMx:|jD]/}|j|�|kr
|jj|�dSq
Wt|��dS(N(R�R�RR*(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��s
cCs4|jstd��n|jj�}|j|�S(Nspop from an empty set(R�R*R�R�(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��s	cCs"x|D]}|j|�qWdS(N(R(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��s
c
Cs�t|�}|j|pd�}t|p-d�j|�}|j|�}|j}|j}xF|pidD]8}	|	|kr�||	�qj|	|krj||	�qjqjWx|D]}	||	�q�WdS(N((((R"RRRR�(
RR�R#RRRRtappendertremoverR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR|�s		

cCs8tj||�stSx|D]}|j|�qW|S(N(Rt_set_binops_check_strictR�R(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__ior__�s

cCstt|��S(N(R"R�(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��scCst|�j|�S(N(R"tunion(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR
�scCst|�j|�S(N(R"R(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�scCs"x|D]}|j|�qWdS(N(R(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytdifference_update�s
cCs8tj||�stSx|D]}|j|�qW|S(N(RRR�R(RR�R�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__isub__�s

cCst|�j|�S(N(R"R(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�scCsq|j|�t|�}}||||}}x|D]}|j|�q8Wx|D]}|j|�qVWdS(N(RR"R�R(RR�twantthaveR�RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytintersection_update�s

cCs�tj||�stS|j|�t|�}}||||}}x|D]}|j|�qNWx|D]}|j|�qlW|S(N(RRR�RR"R�R(RR�RRR�RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__iand__s

cCst|�j|�S(N(R"tsymmetric_difference(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRscCsq|j|�t|�}}||||}}x|D]}|j|�q8Wx|D]}|j|�qVWdS(N(RR"R�R(RR�RRR�RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pytsymmetric_difference_updates

cCs�tj||�stS|j|�t|�}}||||}}x|D]}|j|�qNWx|D]}|j|�qlW|S(N(RRR�RR"R�R(RR�RRR�RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt__ixor__"s

cCst|�j|�S(N(R"tissubset(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR/scCst|�j|�S(N(R"t
issuperset(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR2scCs|jj�dS(N(R�R�(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�5scCs
t|�S(N(R"(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�8scCst|�|kS(N(R"(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�;scCst|�|kS(N(R"(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�>scCst|�|kS(N(R"(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�AscCst|�|kS(N(R"(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�DscCst|�|kS(N(R"(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�GscCst|�|kS(N(R"(RR�((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�JscCstt|��S(N(R�R"(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyRCMscCstdt|�j��dS(Ns%s objects are unhashable(R�RR(R((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR�Ps(5RRDRER�R�R�R�R�R�R�RRR�R�R�R|RR�R
t__or__Rt__sub__RRRt__and__RRRt__xor__RRRRR�R�R�R�R�R�R�R�RCR�RR�R�R�R�R�RcR"Rb(((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyR��sb																				
	
		
	
												"
(RER>R�RRRRRRtsqlRt
sql.operatorsRRtsymbolR
tInspectionAttrInfoRtobjectR,RWRaReRxR�R�R�R�R�(((sP/opt/alt/python27/lib/python2.7/site-packages/sqlalchemy/ext/associationproxy.pyt<module>s0	7
���\:7��