Ñò
ÀŠ›Mc           @   s  d  Z  d d k Z d d k Z d d k Z d d k l Z d d k l Z d d k l Z d d k l	 Z	 d d k
 l Z d „  Z d	 e f d
 „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ e i d ƒ Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d S(   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ÿÿÿÿN(   t
   exceptions(   t   orm(   t   util(   t   collections(   t   not_c         K   s   t  |  | |  S(   sŽ	  Return a Python property implementing a view of *attr* over a collection.

    Implements a read/write view over an instance's *target_collection*,
    extracting *attr* from each member of the collection.  The property acts
    somewhat like this list comprehension::

      [getattr(member, *attr*)
       for member in getattr(instance, *target_collection*)]

    Unlike the list comprehension, the collection returned by the property is
    always in sync with *target_collection*, and mutations made to either
    collection will be reflected in both.

    Implements a Python property representing a relationship as a collection of
    simpler values.  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 relationship attribute we'll proxy to,
      usually created with :func:`~sqlalchemy.orm.relationship`.

    :param attr: Attribute on the associated 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`.

    (   t   AssociationProxy(   t   target_collectiont   attrt   kw(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   association_proxy   s    8R   c           B   sÎ   e  Z d  Z d d d d d „ Z d „  Z e d „  ƒ Z d „  Z d „  Z	 d „  Z
 d „  Z d „  Z d	 „  Z d
 „  Z d „  Z d „  Z e d „  ƒ Z d d „ Z d d „ Z d „  Z d „  Z d „  Z RS(   sD   A descriptor that presents a read/write view of an object attribute.c         C   sz   | |  _  | |  _ | |  _ | |  _ | |  _ | |  _ d |  _ d |  _ d t	 |  ƒ i
 | t |  ƒ f |  _ d |  _ d S(   s²  Arguments are:

        target_collection
          Name of the collection we'll proxy to, usually created with
          'relationship()' in a mapper setup.

        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)]

        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.

        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.

        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.

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

        s	   _%s_%s_%sN(   R   t
   value_attrt   creatort   getset_factoryt   proxy_factoryt   proxy_bulk_sett   Nonet   scalart   owning_classt   typet   __name__t   idt   keyt   collection_class(   t   selfR   R   R   R   R   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __init__W   s    .								"c         C   s   t  i |  i ƒ i |  i ƒ S(   N(   R   t   class_mapperR   t   get_propertyR   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   _get_property’   s    c         C   s   |  i  ƒ  i i S(   s#   The class the proxy is attached to.(   R   t   mappert   class_(   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   target_class–   s    c         C   s   |  i  ƒ  i S(   N(   R   t   uselist(   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   _target_is_scalar›   s    c         C   s.  |  i  d  j o! | o | p
 t | ƒ |  _  n | d  j o |  S|  i d  j o+ |  i ƒ  |  _ |  i o |  i ƒ  q~ n |  i o |  i t | |  i ƒ ƒ Sy4 t | |  i	 ƒ \ } } t
 | ƒ | j o | SWn t j
 o n X|  i t | |  i ƒ ƒ } t | |  i	 t
 | ƒ | f ƒ | Sd  S(   N(   R   R   R   R   R    t   _initialize_scalar_accessorst   _scalar_gett   getattrR   R   R   t   AttributeErrort   _newt   _lazy_collectiont   setattr(   R   t   objR   t
   creator_idt   proxy(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __get__ž   s&    !

	c         C   s  |  i  d  j o t | ƒ |  _  n |  i d  j o+ |  i ƒ  |  _ |  i o |  i ƒ  q^ n |  i om |  i o
 |  i p |  i } t | |  i	 ƒ } | d  j o t
 | |  i	 | | ƒ ƒ q|  i | | ƒ n> |  i | d  ƒ } | | j	 o | i ƒ  |  i | | ƒ n d  S(   N(   R   R   R   R   R    R!   R   R   R#   R   R'   t   _scalar_setR+   t   cleart   _set(   R   R(   t   valuesR   t   targetR*   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __set__·   s     


c         C   s7   |  i  d  j o t | ƒ |  _  n t | |  i ƒ d  S(   N(   R   R   R   t   delattrR   (   R   R(   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt
   __delete__Ì   s    c         C   sR   |  i  o |  i  d  |  ƒ \ } } n |  i d  ƒ \ } } | | |  _ |  _ d  S(   N(   R   R   t   _default_getsetR"   R,   (   R   t   gett   set(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR!   Ñ   s    
c            sQ   |  i  ‰  t i ˆ  ƒ } | t j o ‡  f d †  } n ‡  f d †  } | | f S(   Nc            s   t  |  ˆ  | ƒ S(    (   R'   (   t   ot   kt   v(   R   (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   <lambda>Ü   s    c            s   t  |  ˆ  | ƒ S(    (   R'   (   R7   R9   (   R   (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR:   Þ   s    (   R
   t   operatort
   attrgettert   dict(   R   R   t   gettert   setter(    (   R   sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR4   Ø   s    	c         C   s2  |  i  o
 |  i  p |  i } t i | ƒ  ƒ |  _ |  i o |  i | | |  i |  ƒ S|  i o |  i |  i |  ƒ \ } } n |  i |  i ƒ \ } } |  i t	 j o t
 | | | | |  ƒ S|  i t j o t | | | | |  ƒ S|  i t j o t | | | | |  ƒ St i d |  i i |  i f ƒ ‚ d  S(   Ns‚   could not guess which interface to use for collection_class "%s" backing "%s"; specify a proxy_factory and proxy_bulk_set manually(   R   R   R   t   duck_type_collectionR   R   R
   R   R4   t   listt   _AssociationListR=   t   _AssociationDictR6   t   _AssociationSetR    t   ArgumentErrorR   R   (   R   t   lazy_collectionR   R>   R?   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR%   á   s     

c         C   s}   |  i  o
 |  i  p |  i } |  i o |  i |  i |  ƒ \ } } n |  i |  i ƒ \ } } | | _  | | _ | | _ d  S(   N(   R   R   R   R   R4   R>   R?   (   R   R*   R   R>   R?   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   _inflateú   s    
		c         C   s”   |  i  o |  i  | | ƒ ns |  i t j o | i | ƒ nR |  i t j o | i | ƒ n1 |  i t j o | i | ƒ n t i d ƒ ‚ d  S(   NsE   no proxy_bulk_set supplied for custom collection_class implementation(	   R   R   RA   t   extendR=   t   updateR6   R    RE   (   R   R*   R/   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR.     s    
c         C   s   |  i  ƒ  i S(   N(   R   t
   comparator(   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   _comparator  s    c         K   s+   |  i  i t |  i |  i ƒ i | |  ƒ S(   N(   RK   t   anyR#   R   R
   t   has(   R   t	   criteriont   kwargs(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRL     s    c         K   s+   |  i  i t |  i |  i ƒ i | |  ƒ S(   N(   RK   RM   R#   R   R
   (   R   RN   RO   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRM     s    c         C   s   |  i  i h | |  i 6  S(   N(   RK   RL   R
   (   R   R(   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   contains  s    c         C   s   |  i  i h | |  i 6  S(   N(   RK   RM   R
   (   R   R(   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __eq__!  s    c         C   s   t  |  i | ƒ ƒ S(   N(   R   RQ   (   R   R(   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __ne__$  s    N(   R   t
   __module__t   __doc__R   R   R   t   propertyR   R    R+   R1   R3   R!   R4   R%   RG   R.   RK   RL   RM   RP   RQ   RR   (    (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR   T   s(   :													R&   c           B   s,   e  Z d  „  Z d „  Z d „  Z d „  Z RS(   c         C   s   t  i | ƒ |  _ | |  _ d  S(   N(   t   weakreft   refR0   (   R   R(   R0   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR   )  s    c         C   s<   |  i  ƒ  } | d  j o t i d ƒ ‚ n t | |  i ƒ S(   Ns<   stale association proxy, parent object has gone out of scope(   RW   R   R    t   InvalidRequestErrorR#   R0   (   R   R(   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __call__-  s
    c         C   s   h |  i  ƒ  d 6|  i d 6S(   NR(   R0   (   RW   R0   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __getstate__5  s    c         C   s'   t  i | d ƒ |  _ | d |  _ d  S(   NR(   R0   (   RV   RW   R0   (   R   t   state(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __setstate__8  s    (   R   RS   R   RY   RZ   R\   (    (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR&   (  s   			t   _AssociationCollectionc           B   sD   e  Z d  „  Z e d „  ƒ Z d „  Z d „  Z d „  Z d „  Z RS(   c         C   s1   | |  _  | |  _ | |  _ | |  _ | |  _ d S(   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(   RF   R   R>   R?   t   parent(   R   RF   R   R>   R?   R^   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR   =  s
    				c         C   s
   |  i  ƒ  S(    (   RF   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR:   \  s    c         C   s   t  |  i ƒ S(   N(   t   lent   col(   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __len__^  s    c         C   s   t  |  i ƒ S(   N(   t   boolR`   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __nonzero__a  s    c         C   s   h |  i  d 6|  i d 6S(   NR^   RF   (   R^   RF   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRZ   d  s    c         C   s.   | d |  _  | d |  _ |  i  i |  ƒ d  S(   NR^   RF   (   R^   RF   RG   (   R   R[   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR\   g  s    (	   R   RS   R   RU   R`   Ra   Rc   RZ   R\   (    (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR]   <  s   				RB   c           B   sÌ  e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z  e  Z! d  „  Z" d! „  Z# d" „  Z$ d# „  Z% d$ „  Z& xq e' ƒ  i( ƒ  D]` \ Z) Z* e+ i, e* ƒ oD e* i) e) j o4 e* i o) e- e. e) ƒ o e/ e. e) ƒ i e* _ q`q`W[) [* RS(%   s(   Generic, converting, list-to-list proxy.c         C   s   |  i  | ƒ S(   N(   R   (   R   t   value(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   _createo  s    c         C   s   |  i  | ƒ S(   N(   R>   (   R   t   object(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   _getr  s    c         C   s   |  i  | | ƒ S(   N(   R?   (   R   Rf   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR.   u  s    c         C   s   |  i  |  i | ƒ S(   N(   Rg   R`   (   R   t   index(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __getitem__x  s    c         C   s  t  | t ƒ p |  i |  i | | ƒ nS| i d  j o t |  ƒ } n1 | i d j  o t |  ƒ | i } n
 | i } | i p d } t | i	 p d | | ƒ } | d j oS x | D] } |  | i	 =q» W| i	 } x¢ | D]  } |  i
 | | ƒ | d 7} qß Wnw t | ƒ t | ƒ j o& t d t | ƒ t | ƒ f ƒ ‚ n x4 t | | ƒ D]# \ } } |  i |  i | | ƒ qVWd  S(   Ni    i   sB   attempt to assign sequence of size %s to extended slice of size %s(   t
   isinstancet   sliceR.   R`   t   stopR   R_   t   stept   ranget   startt   insertt
   ValueErrort   zip(   R   Rh   Rd   Rl   Rm   t   rngt   it   item(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __setitem__{  s4    	 	 	 c         C   s   |  i  | =d  S(   N(   R`   (   R   Rh   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __delitem__˜  s    c         C   s3   x, |  i  D]! } |  i | ƒ | j o t Sq
 Wt S(   N(   R`   Rg   t   Truet   False(   R   Rd   t   member(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __contains__›  s
    
 	c         C   s2   g  } |  i  | | !D] } | |  i | ƒ q ~ S(   N(   R`   Rg   (   R   Ro   t   endt   _[1]Rz   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __getslice__¢  s    c         C   s>   g  } | D] } | |  i  | ƒ q ~ } | |  i | | +d  S(   N(   Re   R`   (   R   Ro   R|   R/   R}   R9   t   members(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __setslice__¥  s    *c         C   s   |  i  | | 5d  S(   N(   R`   (   R   Ro   R|   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __delslice__©  s    c         c   s,   x |  i  D] } |  i | ƒ Vq
 Wt ‚ d S(   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`   Rg   t   StopIteration(   R   Rz   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __iter__¬  s    
 c         C   s#   |  i  | ƒ } |  i i | ƒ d  S(   N(   Re   R`   t   append(   R   Rd   Ru   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR„   ¸  s    c            s@   t  g  } t i ‡  f d †  t |  ƒ ƒ D] } | d q) ~ ƒ S(   Nc            s
   |  ˆ  j S(    (    (   R9   (   Rd   (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR:   ¾  s    i   (   t   sumt	   itertoolst   ifiltert   iter(   R   Rd   R}   t   _(    (   Rd   sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   count¼  s    
c         C   s"   x | D] } |  i  | ƒ q Wd  S(   N(   R„   (   R   R/   R9   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRH   À  s     c         C   s    |  i  | ƒ g |  i | | +d  S(   N(   Re   R`   (   R   Rh   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRp   Ä  s    iÿÿÿÿc         C   s   |  i  |  i i | ƒ ƒ S(   N(   R>   R`   t   pop(   R   Rh   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR‹   Ç  s    c         C   sI   x6 t  |  ƒ D]( \ } } | | j o |  i | =d  Sq Wt d ƒ ‚ d  S(   Ns   value not in list(   t	   enumerateR`   Rq   (   R   Rd   Rt   t   val(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   removeÊ  s     
	c         C   s
   t  ‚ d S(   s#   Not supported, use reversed(mylist)N(   t   NotImplementedError(   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   reverseÑ  s    c         C   s
   t  ‚ d S(   s!   Not supported, use sorted(mylist)N(   R   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   sortÖ  s    c         C   s   |  i  d t |  i  ƒ 5d  S(   Ni    (   R`   R_   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR-   Û  s    c         C   s   t  |  ƒ | j S(   N(   RA   (   R   t   other(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRQ   Þ  s    c         C   s   t  |  ƒ | j S(   N(   RA   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRR   á  s    c         C   s   t  |  ƒ | j  S(   N(   RA   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __lt__ä  s    c         C   s   t  |  ƒ | j S(   N(   RA   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __le__ç  s    c         C   s   t  |  ƒ | j S(   N(   RA   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __gt__ê  s    c         C   s   t  |  ƒ | j S(   N(   RA   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __ge__í  s    c         C   s   t  t |  ƒ | ƒ S(   N(   t   cmpRA   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __cmp__ð  s    c         C   s5   y t  | ƒ } Wn t j
 o t SXt  |  ƒ | S(   N(   RA   t	   TypeErrort   NotImplemented(   R   t   iterableR’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __add__ó  s
    c         C   s5   y t  | ƒ } Wn t j
 o t SX| t  |  ƒ S(   N(   RA   R™   Rš   (   R   R›   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __radd__ú  s
    c         C   s#   t  | t ƒ p t St |  ƒ | S(   N(   Rj   t   intRš   RA   (   R   t   n(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __mul__  s    c         C   s   |  i  | ƒ |  S(   N(   RH   (   R   R›   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __iadd__  s    c         C   s`   t  | t ƒ p t S| d j o |  i ƒ  n- | d j o |  i t |  ƒ | d ƒ n |  S(   Ni    i   (   Rj   Rž   Rš   R-   RH   RA   (   R   RŸ   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __imul__  s    c         C   s
   t  |  ƒ S(   N(   RA   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   copy  s    c         C   s   t  t |  ƒ ƒ S(   N(   t   reprRA   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __repr__  s    c         C   s   t  d t |  ƒ i ƒ ‚ d  S(   Ns   %s objects are unhashable(   R™   R   R   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __hash__  s    (0   R   RS   RT   Re   Rg   R.   Ri   Rv   Rw   R{   R~   R€   R   Rƒ   R„   RŠ   RH   Rp   R‹   RŽ   R   R‘   R-   RQ   RR   R“   R”   R•   R–   R˜   Rœ   R   R    t   __rmul__R¡   R¢   R£   R¥   R¦   t   localst   itemst	   func_namet   funcR   t   callablet   hasattrRA   R#   (    (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRB   l  sV   																																		  t   _NotProvidedRC   c           B   s¨  e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d  d „ Z d  d „ Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e d „ Z d „  Z  d „  Z! d „  Z" d „  Z# xq e$ ƒ  i ƒ  D]` \ Z% Z& e' i( e& ƒ oD e& i% e% j o4 e& i o) e) e* e% ƒ o e+ e* e% ƒ i e& _ q<q<W[% [& RS(!   s(   Generic, converting, dict-to-dict proxy.c         C   s   |  i  | | ƒ S(   N(   R   (   R   R   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRe   ,  s    c         C   s   |  i  | ƒ S(   N(   R>   (   R   Rf   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRg   /  s    c         C   s   |  i  | | | ƒ S(   N(   R?   (   R   Rf   R   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR.   2  s    c         C   s   |  i  |  i | ƒ S(   N(   Rg   R`   (   R   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRi   5  s    c         C   sK   | |  i  j o |  i |  i  | | | ƒ n |  i | | ƒ |  i  | <d  S(   N(   R`   R.   Re   (   R   R   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRv   8  s    c         C   s   |  i  | =d  S(   N(   R`   (   R   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRw   >  s    c         C   s   | |  i  j S(   N(   R`   (   R   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR{   A  s    c         C   s   | |  i  j S(   N(   R`   (   R   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   has_keyE  s    c         C   s   |  i  i ƒ  S(   N(   R`   t   iterkeys(   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRƒ   I  s    c         C   s   |  i  i ƒ  d  S(   N(   R`   R-   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR-   L  s    c         C   s   t  |  ƒ | j S(   N(   R=   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRQ   O  s    c         C   s   t  |  ƒ | j S(   N(   R=   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRR   R  s    c         C   s   t  |  ƒ | j  S(   N(   R=   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR“   U  s    c         C   s   t  |  ƒ | j S(   N(   R=   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR”   X  s    c         C   s   t  |  ƒ | j S(   N(   R=   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR•   [  s    c         C   s   t  |  ƒ | j S(   N(   R=   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR–   ^  s    c         C   s   t  t |  ƒ | ƒ S(   N(   R—   R=   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR˜   a  s    c         C   s   t  t |  i ƒ  ƒ ƒ S(   N(   R¤   R=   R©   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR¥   d  s    c         C   s'   y |  | SWn t  j
 o | SXd  S(   N(   t   KeyError(   R   R   t   default(    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR5   g  s    c         C   s:   | |  i  j o |  i | | ƒ |  i  | <| S|  | Sd  S(   N(   R`   Re   (   R   R   R²   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt
   setdefaultm  s    c         C   s   |  i  i ƒ  S(   N(   R`   t   keys(   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR´   t  s    c         C   s   |  i  i ƒ  S(   N(   R`   R°   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR°   w  s    c         C   s1   g  } |  i  i ƒ  D] } | |  i | ƒ q ~ S(   N(   R`   R/   Rg   (   R   R}   Rz   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR/   z  s    c         c   s3   x& |  i  D] } |  i |  i  | ƒ Vq
 Wt ‚ d  S(   N(   R`   Rg   R‚   (   R   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt
   itervalues}  s    
 c         C   s5   g  } |  D]# } | | |  i  |  i | ƒ f q ~ S(   N(   Rg   R`   (   R   R}   R8   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR©   ‚  s    c         c   s9   x, |  i  D]! } | |  i |  i  | ƒ f Vq
 Wt ‚ d  S(   N(   R`   Rg   R‚   (   R   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt	   iteritems…  s    
 c         C   sE   | t  j o |  i i | ƒ } n |  i i | | ƒ } |  i | ƒ S(   N(   R®   R`   R‹   Rg   (   R   R   R²   Rz   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR‹   Š  s    c         C   s*   |  i  i ƒ  } | d |  i | d ƒ f S(   Ni    i   (   R`   t   popitemRg   (   R   Ru   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR·   ‘  s    c         O   s¸   t  | ƒ d j o t d t  | ƒ ƒ ‚ ng t  | ƒ d j oS | d } xF | D]: } t | t ƒ o | d |  | d <qQ | | |  | <qQ Wn x | D] \ } } | |  | <qš Wd  S(   Ni   s+   update expected at most 1 arguments, got %ii    (   R_   R™   Rj   t   tuple(   R   t   aR   t
   seq_or_mapRu   R   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRI   •  s    
  c         C   s   t  |  i ƒ  ƒ S(   N(   R=   R©   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR£   ¤  s    c         C   s   t  d t |  ƒ i ƒ ‚ d  S(   Ns   %s objects are unhashable(   R™   R   R   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR¦   §  s    N(,   R   RS   RT   Re   Rg   R.   Ri   Rv   Rw   R{   R¯   Rƒ   R-   RQ   RR   R“   R”   R•   R–   R˜   R¥   R   R5   R³   R´   R°   R/   Rµ   R©   R¶   R®   R‹   R·   RI   R£   R¦   R¨   Rª   R«   R   R¬   R­   R=   R#   (    (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRC   )  sL   																												  RD   c           B   sä  e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z	 d „  Z
 d	 „  Z d
 „  Z d „  Z d „  Z d „  Z d „  Z d „  Z e Z d „  Z e Z d „  Z d „  Z d „  Z e Z d „  Z d „  Z d „  Z e Z d „  Z d „  Z d „  Z d „  Z d „  Z  d „  Z! d „  Z" d „  Z# d „  Z$ d  „  Z% d! „  Z& d" „  Z' d# „  Z( d$ „  Z) xq e* ƒ  i+ ƒ  D]` \ Z, Z- e. i/ e- ƒ oD e- i, e, j o4 e- i o) e0 e1 e, ƒ o e2 e1 e, ƒ i e- _ qxqxW[, [- RS(%   s&   Generic, converting, set-to-set proxy.c         C   s   |  i  | ƒ S(   N(   R   (   R   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRe   ´  s    c         C   s   |  i  | ƒ S(   N(   R>   (   R   Rf   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRg   ·  s    c         C   s   |  i  | | ƒ S(   N(   R?   (   R   Rf   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR.   º  s    c         C   s   t  |  i ƒ S(   N(   R_   R`   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRa   ½  s    c         C   s   |  i  o t St Sd  S(   N(   R`   Rx   Ry   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRc   À  s    
c         C   s3   x, |  i  D]! } |  i | ƒ | j o t Sq
 Wt S(   N(   R`   Rg   Rx   Ry   (   R   Rd   Rz   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR{   Æ  s
    
 	c         c   s,   x |  i  D] } |  i | ƒ Vq
 Wt ‚ d S(   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`   Rg   R‚   (   R   Rz   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRƒ   Í  s    
 c         C   s.   | |  j o |  i  i |  i | ƒ ƒ n d  S(   N(   R`   t   addRe   (   R   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR»   Ø  s    c         C   sC   x< |  i  D]1 } |  i | ƒ | j o |  i  i | ƒ Pq
 q
 Wd  S(   N(   R`   Rg   t   discard(   R   Rd   Rz   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR¼   Þ  s
    
 c         C   sO   x< |  i  D]1 } |  i | ƒ | j o |  i  i | ƒ d  Sq
 Wt | ƒ ‚ d  S(   N(   R`   Rg   R¼   R±   (   R   Rd   Rz   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRŽ   ä  s    
 	c         C   s6   |  i  p t d ƒ ‚ n |  i  i ƒ  } |  i | ƒ S(   Ns   pop from an empty set(   R`   R±   R‹   Rg   (   R   Rz   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR‹   ë  s    
c         C   s"   x | D] } |  i  | ƒ q Wd  S(   N(   R»   (   R   R’   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRI   ñ  s     c         C   s:   t  i |  | ƒ p t Sx | D] } |  i | ƒ q W|  S(   N(   R   t   _set_binops_check_strictRš   R»   (   R   R’   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __ior__õ  s     c         C   s   t  t |  ƒ ƒ S(   N(   R6   Rˆ   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR.   ü  s    c         C   s   t  |  ƒ i | ƒ S(   N(   R6   t   union(   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR¿   ÿ  s    c         C   s   t  |  ƒ i | ƒ S(   N(   R6   t
   difference(   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRÀ     s    c         C   s"   x | D] } |  i  | ƒ q Wd  S(   N(   R¼   (   R   R’   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   difference_update	  s     c         C   s:   t  i |  | ƒ p t Sx | D] } |  i | ƒ q W|  S(   N(   R   R½   Rš   R¼   (   R   R’   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __isub__  s     c         C   s   t  |  ƒ i | ƒ S(   N(   R6   t   intersection(   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRÃ     s    c         C   sq   |  i  | ƒ t |  ƒ } } | | | | } } x | D] } |  i | ƒ q8 Wx | D] } |  i | ƒ qV Wd  S(   N(   RÃ   R6   RŽ   R»   (   R   R’   t   wantt   haveRŽ   R»   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   intersection_update  s      c         C   s‰   t  i |  | ƒ p t S|  i | ƒ t |  ƒ } } | | | | } } x | D] } |  i | ƒ qP Wx | D] } |  i | ƒ qn W|  S(   N(   R   R½   Rš   RÃ   R6   RŽ   R»   (   R   R’   RÄ   RÅ   RŽ   R»   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __iand__#  s      c         C   s   t  |  ƒ i | ƒ S(   N(   R6   t   symmetric_difference(   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRÈ   0  s    c         C   sq   |  i  | ƒ t |  ƒ } } | | | | } } x | D] } |  i | ƒ q8 Wx | D] } |  i | ƒ qV Wd  S(   N(   RÈ   R6   RŽ   R»   (   R   R’   RÄ   RÅ   RŽ   R»   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   symmetric_difference_update5  s      c         C   s‰   t  i |  | ƒ p t S|  i | ƒ t |  ƒ } } | | | | } } x | D] } |  i | ƒ qP Wx | D] } |  i | ƒ qn W|  S(   N(   R   R½   Rš   RÈ   R6   RŽ   R»   (   R   R’   RÄ   RÅ   RŽ   R»   Rd   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   __ixor__?  s      c         C   s   t  |  ƒ i | ƒ S(   N(   R6   t   issubset(   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRË   L  s    c         C   s   t  |  ƒ i | ƒ S(   N(   R6   t
   issuperset(   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRÌ   O  s    c         C   s   |  i  i ƒ  d  S(   N(   R`   R-   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR-   R  s    c         C   s
   t  |  ƒ S(   N(   R6   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR£   U  s    c         C   s   t  |  ƒ | j S(   N(   R6   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRQ   X  s    c         C   s   t  |  ƒ | j S(   N(   R6   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRR   [  s    c         C   s   t  |  ƒ | j  S(   N(   R6   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR“   ^  s    c         C   s   t  |  ƒ | j S(   N(   R6   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR”   a  s    c         C   s   t  |  ƒ | j S(   N(   R6   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR•   d  s    c         C   s   t  |  ƒ | j S(   N(   R6   (   R   R’   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR–   g  s    c         C   s   t  t |  ƒ ƒ S(   N(   R¤   R6   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR¥   j  s    c         C   s   t  d t |  ƒ i ƒ ‚ d  S(   Ns   %s objects are unhashable(   R™   R   R   (   R   (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyR¦   m  s    (3   R   RS   RT   Re   Rg   R.   Ra   Rc   R{   Rƒ   R»   R¼   RŽ   R‹   RI   R¾   R¿   t   __or__RÀ   t   __sub__RÁ   RÂ   RÃ   t   __and__RÆ   RÇ   RÈ   t   __xor__RÉ   RÊ   RË   RÌ   R-   R£   RQ   RR   R“   R”   R•   R–   R¥   R¦   R¨   R©   Rª   R«   R   R¬   R­   R6   R#   (    (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyRD   ±  s^   																				
			
													  (   RT   R†   R;   RV   t
   sqlalchemyR    R   R   t   sqlalchemy.ormR   t   sqlalchemy.sqlR   R	   Rf   R   R&   R]   RB   t   symbolR®   RC   RD   (    (    (    sj   p:\graphics\tools\python26\lib\site-packages\sqlalchemy-0.6.6-py2.6.egg\sqlalchemy\ext\associationproxy.pyt   <module>   s    	;Ô0¼ˆ