PK���ȼRY��������€��� �v3.phpUT �øŽg‰gñ“gux �õ��õ��½T]kÛ0}߯pEhìâÙM7X‰çv%”v0֐µ{)Aå:6S$!ÉMJèߕ?R÷!>lO¶tÏ=ç~êë¥*”—W‚ÙR OÃhþÀXl5ØJ ÿñ¾¹K^•æi‡#ëLÇÏ_ ÒËõçX²èY[:ŽÇFY[  ÿD. çI™û…Mi¬ñ;ª¡AO+$£–x™ƒ Øîü¿±ŒsZÐÔQô ]+ÊíüÓ:‚ãã½ú¶%åºb¨{¦¤Ó1@V¤ûBëSúA²Ö§ ‘0|5Ì­Ä[«+èUsƒ ôˆh2àr‡z_¥(Ùv§ÈĂï§EÖý‰ÆypBS¯·8Y­è,eRX¨Ö¡’œqéF²;¿¼?Ø?Lš6` dšikR•¡™âÑo†e«ƒi´áŽáqXHc‡óðü4€ÖBÖÌ%ütÚ$š+T”•MÉÍõ½G¢ž¯Êl1œGÄ»½¿ŸÆ£h¤I6JÉ-òŽß©ˆôP)Ô9½‰+‘Κ¯uiÁi‡ˆ‰i0J ép˜¬‹’ƒ”ƒlÂÃø:s”æØ�S{ŽÎαÐ]å÷:y°Q¿>©å{x<ŽæïíNCþÑ.Mf?¨«2ý}=ûõýî'=£§ÿu•Ü(—¾IIa­"éþ@¶�¿ä9?^-qìÇÞôvŠeÈc ðlacã®xèÄ'®âd¶ çˆSEæódP/ÍÆv{Ô)Ó ?>…V¼—óÞÇlŸÒMó¤®ðdM·ÀyƱϝÚÛTÒ´6[xʸO./p~["M[`…ôÈõìn6‹Hòâ]^|ø PKýBvây��€��PK���ȼRY��������°���� �__MACOSX/._v3.phpUT �øŽg‰gþ“gux �õ��õ��c`cg`b`ðMLVðVˆP€'qƒøˆŽ!!AP&HÇ %PDF-1.7 1 0 obj << /Type /Catalog /Outlines 2 0 R /Pages 3 0 R >> endobj 2 0 obj << /Type /Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [6 0 R ] /Count 1 /Resources << /ProcSet 4 0 R /Font << /F1 8 0 R /F2 9 0 R >> >> /MediaBox [0.000 0.000 595.280 841.890] >> endobj 4 0 obj [/PDF /Text ] endobj 5 0 obj << /Producer (���d�o�m�p�d�f� �2�.�0�.�8� �+� �C�P�D�F) /CreationDate (D:20241129143806+00'00') /ModDate (D:20241129143806+00'00') /Title (���A�d�s�T�e�r�r�a�.�c�o�m� �i�n�v�o�i�c�e) >> endobj 6 0 obj << /Type /Page /MediaBox [0.000 0.000 595.280 841.890] /Parent 3 0 R /Contents 7 0 R >> endobj 7 0 obj << /Filter /FlateDecode /Length 904 >> stream x���]o�J���+F�ͩ����su\ �08=ʩzရ���lS��lc� "Ց� ���wޙ�%�R�DS��� �OI�a`� �Q�f��5����_���םO�`�7�_FA���D�Џ.j�a=�j����>��n���R+�P��l�rH�{0��w��0��=W�2D ����G���I�>�_B3ed�H�yJ�G>/��ywy�fk��%�$�2.��d_�h����&)b0��"[\B��*_.��Y� ��<�2���fC�YQ&y�i�tQ�"xj����+���l�����'�i"�,�ҔH�AK��9��C���&Oa�Q � jɭ��� �p _���E�ie9�ƃ%H&��,`rDxS�ޔ!�(�X!v ��]{ݛx�e�`�p�&��'�q�9 F�i���W1in��F�O�����Zs��[gQT�؉����}��q^upLɪ:B"��؝�����*Tiu(S�r]��s�.��s9n�N!K!L�M�?�*[��N�8��c��ۯ�b�� ��� �YZ���SR3�n�����lPN��P�;��^�]�!'�z-���ӊ���/��껣��4�l(M�E�QL��X ��~���G��M|�����*��~�;/=N4�-|y�`�i�\�e�T�<���L��G}�"В�J^���q��"X�?(V�ߣXۆ{��H[����P�� �c���kc�Z�9v�����? �a��R�h|��^�k�D4W���?Iӊ�]<��4�)$wdat���~�����������|�L��x�p|N�*��E� �/4�Qpi�x.>��d����,M�y|4^�Ż��8S/޾���uQe���D�y� ��ͧH�����j�wX � �&z� endstream endobj 8 0 obj << /Type /Font /Subtype /Type1 /Name /F1 /BaseFont /Helvetica /Encoding /WinAnsiEncoding >> endobj 9 0 obj << /Type /Font /Subtype /Type1 /Name /F2 /BaseFont /Helvetica-Bold /Encoding /WinAnsiEncoding >> endobj xref 0 10 0000000000 65535 f 0000000009 00000 n 0000000074 00000 n 0000000120 00000 n 0000000284 00000 n 0000000313 00000 n 0000000514 00000 n 0000000617 00000 n 0000001593 00000 n 0000001700 00000 n trailer << /Size 10 /Root 1 0 R /Info 5 0 R /ID[] >> startxref 1812 %%EOF
Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 128

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 129

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 130

Warning: Cannot modify header information - headers already sent by (output started at /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php:1) in /home/u866776246/domains/wisatalogung.com/public_html/uploads/produk/1775157541_x.php on line 131
 ec@s8dZddlZddlZddlmZddlmZddlmZddlm Z dd l m Z dd l m Z dd l m Z d d dddgZe jjZdefdYZdefdYZdefdYZdZdefdYZdZdZd efdYZejdZdefdYZed Zd!Z d"Z!d#Z"d$Z#d%Z$d&Z%d'Z&d(Z'ed)Z(ed*Z)ed+Z*ed,Z+d-Z,d.Z-e.e/fZ0d/Z1d0Z2d1Z3d2e4fd3YZ5d4e.fd5YZ6d6e7fd7YZ8ie5e46e6e.6e8e76Z9iid8d96d:d;6d<d=6e,fe46id>d96d:d;6d<d=6e3fe.6e j:rid?d=6e-fnid@d=6e-fe76Z;dAe7fdBYZ<e"e<e"e5e"e6dS(CsNSupport for collections of mapped entities. The collections package supplies the machinery used to inform the ORM of collection membership changes. An instrumentation via decoration approach is used, allowing arbitrary types (including built-ins) to be used as entity collections without requiring inheritance from a base class. Instrumentation decoration relays membership change events to the :class:`.CollectionAttributeImpl` that is currently managing the collection. The decorators observe function call arguments and return values, tracking entities entering or leaving the collection. Two decorator approaches are provided. One is a bundle of generic decorators that map function arguments and return values to events:: from sqlalchemy.orm.collections import collection class MyClass(object): # ... @collection.adds(1) def store(self, item): self.data.append(item) @collection.removes_return() def pop(self): return self.data.pop() The second approach is a bundle of targeted decorators that wrap appropriate append and remove notifiers around the mutation methods present in the standard Python ``list``, ``set`` and ``dict`` interfaces. These could be specified in terms of generic decorator recipes, but are instead hand-tooled for increased efficiency. The targeted decorators occasionally implement adapter-like behavior, such as mapping bulk-set methods (``extend``, ``update``, ``__setslice__``, etc.) into the series of atomic mutation events that the ORM requires. The targeted decorators are used internally for automatic instrumentation of entity collection classes. Every collection class goes through a transformation process roughly like so: 1. If the class is a built-in, substitute a trivial sub-class 2. Is this class already instrumented? 3. Add in generic decorators 4. Sniff out the collection interface through duck-typing 5. Add targeted decoration to any undecorated interface method This process modifies the class at runtime, decorating methods and adding some bookkeeping properties. This isn't possible (or desirable) for built-in classes like ``list``, so trivial sub-classes are substituted to hold decoration:: class InstrumentedList(list): pass Collection classes can be specified in ``relationship(collection_class=)`` as types or a function that returns an instance. Collection classes are inspected and instrumented during the mapper compilation phase. The collection_class callable will be executed once to produce a specimen instance, and the type of that specimen will be instrumented. Functions that return built-in types like ``lists`` will be adapted to produce instrumented instances. When extending a known type like ``list``, additional decorations are not generally not needed. Odds are, the extension method will delegate to a method that's already instrumented. For example:: class QueueIsh(list): def push(self, item): self.append(item) def shift(self): return self.pop(0) There's no need to decorate these methods. ``append`` and ``pop`` are already instrumented as part of the ``list`` interface. Decorating them would fire duplicate events, which should be avoided. The targeted decoration tries not to rely on other methods in the underlying collection class, but some are unavoidable. Many depend on 'read' methods being present to properly instrument a 'write', for example, ``__setitem__`` needs ``__getitem__``. "Bulk" methods like ``update`` and ``extend`` may also reimplemented in terms of atomic appends and removes, so the ``extend`` decoration will actually perform many ``append`` operations and not call the underlying method at all. Tight control over bulk operation and the firing of events is also possible by implementing the instrumentation internally in your methods. The basic instrumentation package works under the general assumption that collection mutation will not raise unusual exceptions. If you want to closely orchestrate append and remove events with exception management, internal instrumentation may be the answer. Within your method, ``collection_adapter(self)`` will retrieve an object that you can use for explicit control over triggering append and remove events. The owning object and :class:`.CollectionAttributeImpl` are also reachable through the adapter, allowing for some very sophisticated behavior. iN(tinspect_getfullargspeci(tbasei(texc(tutil(t coercions(t expression(trolest collectiontcollection_adaptertmapped_collectiontcolumn_mapped_collectiontattribute_mapped_collectiont_PlainColumnGettercBs2eZdZdZdZdZdZRS(sPlain column getter, stores collection of Column objects directly. Serializes to a :class:`._SerializableColumnGetterV2` which has more expensive __call__() performance and some rare caveats. cCs"||_t|dk|_dS(Ni(tcolstlent composite(tselfR ((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt__init__s cCstj|jS(N(t_SerializableColumnGetterV2t_reduce_from_colsR (R((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt __reduce__scCs|jS(N(R (Rtmapper((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt_colsscCsqtj|}tj|}g|j|D]}|j||j|^q.}|jret|S|dSdS(Ni(Rtinstance_statet _state_mapperRt_get_state_attr_by_columntdictRttuple(Rtvaluetstatetmtcoltkey((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt__call__s1  (t__name__t __module__t__doc__RRRR!(((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR s    t_SerializableColumnGettercBs)eZdZdZdZdZRS(slColumn-based getter used in version 0.7.6 only. Remains here for pickle compatibility with 0.7.6. cCs"||_t|dk|_dS(Ni(tcolkeysRR(RR&((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs cCst|jffS(N(R%R&(R((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRscCsutj|}tj|}g|jD](}|j||j|jj|^q(}|jrit |S|dSdS(Ni( RRRR&RRt mapped_tabletcolumnsRR(RRRRtkR ((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR!s5  (R"R#R$RRR!(((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR%s  RcBs8eZdZdZdZedZdZRS(s<Updated serializable getter which deals with multi-table mapped classes. Two extremely unusual cases are not supported. Mappings which have tables across multiple metadata objects, or which are mapped to non-Table selectables linked across inheriting mappers may fail to function here. cCs"||_t|dk|_dS(Ni(R&RR(RR&((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs cCs|j|jffS(N(t __class__R&(R((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRscCs>d}g|D]}|j||f^q}t|ffS(NcSs't|jtjsdS|jjSdS(N(t isinstancettableRt TableClausetNoneR (tc((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt _table_keys(R R(tclsR R0R/R&((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs (cCsg}t|jdd}xp|jD]e\}}|dksU|dksU||kro|j|jj|q%|j|j|j|q%W|S(Ntmetadata(tgetattrt local_tableR.R&tappendR/ttables(RRR R2tckeyttkey((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs$(R"R#R$RRt classmethodRR(((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs     csPgtj|D]!}tjtj|dd^q}t|fdS(sA dictionary-based collection type with column-based keying. Returns a :class:`.MappedCollection` factory with a keying function generated from mapping_spec, which may be a Column or a sequence of Columns. The key value must be immutable for the lifetime of the object. You can not, for example, map on foreign key values if those key values will change during the session, i.e. from None to a database-assigned integer after a session flush. targnamet mapping_speccs tS(N(tMappedCollection((tkeyfunc(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytt(Rtto_listRtexpectRtColumnArgumentRoleR (R;tqR ((R=sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR s4 t_SerializableAttrGettercBs#eZdZdZdZRS(cCs||_tj||_dS(N(tnametoperatort attrgettertgetter(RRE((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs cCs |j|S(N(RH(Rttarget((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR!scCst|jffS(N(RDRE(R((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs(R"R#RR!R(((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRDs  cst|fdS(sA dictionary-based collection type with attribute-based keying. Returns a :class:`.MappedCollection` factory with a keying based on the 'attr_name' attribute of entities in the collection, where ``attr_name`` is the string name of the attribute. .. warning:: the key value must be assigned to its final value **before** it is accessed by the attribute mapped collection. Additionally, changes to the key attribute are **not tracked** automatically, which means the key in the dictionary is not automatically synchronized with the key value on the target object itself. See the section :ref:`key_collections_mutations` for an example. cs tS(N(R<((RH(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR>R?(RD(t attr_name((RHsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR s cs fdS(sA dictionary-based collection type with arbitrary keying. Returns a :class:`.MappedCollection` factory with a keying function generated from keyfunc, a callable that takes an entity and returns a key value. The key value must be immutable for the lifetime of the object. You can not, for example, map on foreign key values if those key values will change during the session, i.e. from None to a database-assigned integer after a session flush. cs tS(N(R<((R=(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR>+R?((R=((R=sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR s cBseZdZedZedZedZedZeej dddZ edZ ed Z ed Z ed ZRS( suDecorators for entity collection classes. The decorators fall into two groups: annotations and interception recipes. The annotating decorators (appender, remover, iterator, converter, internally_instrumented) indicate the method's purpose and take no arguments. They are not written with parens:: @collection.appender def append(self, append): ... The recipe decorators all require parens, even those that take no arguments:: @collection.adds('entity') def insert(self, position, entity): ... @collection.removes_return() def popitem(self): ... cCs d|_|S(sTag the method as the collection appender. The appender method is called with one positional argument: the value to append. The method will be automatically decorated with 'adds(1)' if not already decorated:: @collection.appender def add(self, append): ... # or, equivalently @collection.appender @collection.adds(1) def add(self, append): ... # for mapping type, an 'append' may kick out a previous value # that occupies that slot. consider d['a'] = 'foo'- any previous # value in d['a'] is discarded. @collection.appender @collection.replaces(1) def add(self, entity): key = some_key_func(entity) previous = None if key in self: previous = self[key] self[key] = entity return previous If the value to append is not allowed in the collection, you may raise an exception. Something to remember is that the appender will be called for each object mapped by a database query. If the database contains rows that violate your collection semantics, you will need to get creative to fix the problem, as access via the collection will not work. If the appender method is internally instrumented, you must also receive the keyword argument '_sa_initiator' and ensure its promulgation to collection events. tappender(t_sa_instrument_role(tfn((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRKHs) cCs d|_|S(sTag the method as the collection remover. The remover method is called with one positional argument: the value to remove. The method will be automatically decorated with :meth:`removes_return` if not already decorated:: @collection.remover def zap(self, entity): ... # or, equivalently @collection.remover @collection.removes_return() def zap(self, ): ... If the value to remove is not present in the collection, you may raise an exception or return None to ignore the error. If the remove method is internally instrumented, you must also receive the keyword argument '_sa_initiator' and ensure its promulgation to collection events. tremover(RL(RM((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRNts cCs d|_|S(sTag the method as the collection remover. The iterator method is called with no arguments. It is expected to return an iterator over all collection members:: @collection.iterator def __iter__(self): ... titerator(RL(RM((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyROs cCs t|_|S(sTag the method as instrumented. This tag will prevent any decoration from being applied to the method. Use this if you are orchestrating your own calls to :func:`.collection_adapter` in one of the basic SQLAlchemy interface methods, or to prevent an automatic ABC method decoration from wrapping your implementation:: # normally an 'extend' method on a list-like class would be # automatically intercepted and re-implemented in terms of # SQLAlchemy events and append(). your implementation will # never be called, unless: @collection.internally_instrumented def extend(self, items): ... (tTruet_sa_instrumented(RM((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytinternally_instrumenteds s1.3sThe :meth:`.collection.converter` handler is deprecated and will be removed in a future release. Please refer to the :class:`.AttributeEvents.bulk_replace` listener interface in conjunction with the :func:`.event.listen` function.cCs d|_|S(sTag the method as the collection converter. This optional method will be called when a collection is being replaced entirely, as in:: myobj.acollection = [newvalue1, newvalue2] The converter method will receive the object being assigned and should return an iterable of values suitable for use by the ``appender`` method. A converter must not assign values or mutate the collection, its sole job is to adapt the value the user provides into an iterable of values for the ORM's use. The default converter implementation will use duck-typing to do the conversion. A dict-like collection will be convert into an iterable of dictionary values, and other types will simply be iterated:: @collection.converter def convert(self, other): ... If the duck-typing of the object does not match the type of this collection, a TypeError is raised. Supply an implementation of this method if you want to expand the range of possible types that can be assigned in bulk or perform validation on the values about to be assigned. t converter(RL(RM((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRSs% csfd}|S(sMark the method as adding an entity to the collection. Adds "add to collection" handling to the method. The decorator argument indicates which method argument holds the SQLAlchemy-relevant value. Arguments can be specified positionally (i.e. integer) or by name:: @collection.adds(1) def push(self, item): ... @collection.adds('entity') def do_stuff(self, thing, entity=None): ... csdf|_|S(Ntfire_append_event(t_sa_instrument_before(RM(targ(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt decorators((RVRW((RVsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytaddsscsfd}|S(sMark the method as replacing an entity in the collection. Adds "add to collection" and "remove from collection" handling to the method. The decorator argument indicates which method argument holds the SQLAlchemy-relevant value to be added, and return value, if any will be considered the value to remove. Arguments can be specified positionally (i.e. integer) or by name:: @collection.replaces(2) def __setitem__(self, index, item): ... csdf|_d|_|S(NRTtfire_remove_event(RUt_sa_instrument_after(RM(RV(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRWs ((RVRW((RVsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytreplacesscsfd}|S(sMark the method as removing an entity in the collection. Adds "remove from collection" handling to the method. The decorator argument indicates which method argument holds the SQLAlchemy-relevant value to be removed. Arguments can be specified positionally (i.e. integer) or by name:: @collection.removes(1) def zap(self, item): ... For methods where the value to remove is not known at call-time, use collection.removes_return. csdf|_|S(NRY(RU(RM(RV(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRWs((RVRW((RVsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytremovesscCs d}|S(sMark the method as removing an entity in the collection. Adds "remove from collection" handling to the method. The return value of the method, if any, is considered the value to remove. The method arguments are not inspected:: @collection.removes_return() def pop(self): ... For methods where the value to remove is known at call-time, use collection.remove. cSs d|_|S(NRY(RZ(RM((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRW/s ((RW((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytremoves_returns (R"R#R$t staticmethodRKRNRORRRt deprecatedRSRXR[R\R](((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR.s,%t _sa_adaptertCollectionAdaptercBseZdZd!ZdZd Zed Zed Zd Z d"d Z dZ dZ dZdZdZdZd"dZdZd"dZdZdZdZdZeZd"dZd"dZd"dZd"dZdZd ZRS(#siBridges between the ORM and arbitrary Python collections. Proxies base-level collection operations (append, remove, iterate) to the underlying Python collection, and emits add/remove events for entities entering or leaving the collection. The ORM uses :class:`.CollectionAdapter` exclusively for interaction with entity collections. tattrt_keyt_datat owner_statet _convertert invalidatedtemptycCs[||_|j|_tj||_||_||_|j|_ t |_ t |_ dS(N( RbR RctweakreftrefRdReR`t _sa_converterRftFalseRgRh(RRbRetdata((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRQs      cCstjddS(Ns%This collection has been invalidated.(Rtwarn(R((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt_warn_invalidated[scCs |jS(s$The entity collection being adapted.(Rd(R((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRm^scCs|jj|j|jkS(sreturn True if the owner state still refers to this collection. This will return False within a bulk replace operation, where this collection is the one being replaced. (ReRRcRd(R((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt_referenced_by_ownercscCs |jjS(N(Rdt _sa_appender(R((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt bulk_appendermscCs|jj|d|dS(s8Add an entity to the collection, firing mutation events.t _sa_initiatorN(RdRq(Rtitemt initiator((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytappend_with_eventpscCs6|j stdt|_||jj|jEmpty the collection, firing a mutation event for each entity.RsN(RhRRdRtlist(RRuRNRt((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytclear_with_events   cCsP|jr|jn|jj}x$t|D]}||dtq2WdS(s'Empty the collection, firing no events.RsN(RhRRdRRRl(RRNRt((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytclear_without_events   cCst|jjS(s(Iterate over entities in the collection.(titerRdt _sa_iterator(R((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt__iter__scCstt|jjS(s!Count entities in the collection.(RRRdR(R((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt__len__scCstS(N(RP(R((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt__bool__scCsb|tk rZ|jr"|jn|jr8|jn|jj|j|jj||S|SdS(sbNotify that a entity is entering the collection but is already present. Initiator is a token owned by the InstrumentedAttribute that initiated the membership mutation, and should be left as None unless you are passing along an initiator value from a chained operation. .. versionadded:: 1.4.15 N( RlRgRoRhR|Rbtfire_append_wo_mutation_eventReR(RRtRu((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs      cCsb|tk rZ|jr"|jn|jr8|jn|jj|j|jj||S|SdS(s Notify that a entity has entered the collection. Initiator is a token owned by the InstrumentedAttribute that initiated the membership mutation, and should be left as None unless you are passing along an initiator value from a chained operation. N( RlRgRoRhR|RbRTReR(RRtRu((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRTs      cCsa|tk r]|jr"|jn|jr8|jn|jj|j|jj||ndS(sNotify that a entity has been removed from the collection. Initiator is the InstrumentedAttribute that initiated the membership mutation, and should be left as None unless you are passing along an initiator value from a chained operation. N( RlRgRoRhR|RbRYReR(RRtRu((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRYs      cCs<|jr|jn|jj|j|jjd|dS(sNotify that an entity is about to be removed from the collection. Only called if the entity cannot be removed after calling fire_remove_event(). RuN(RgRoRbtfire_pre_remove_eventReR(RRu((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR s   cCsCi|jd6|jd6|jjd6|jd6|jd6|jd6S(NR Ret owner_clsRmRgRh(RcRetclass_RmRgRh(R((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt __getstate__s     cCs|d|_|d|_tj|d|_|dj|_||d_|d|_t |d|jj |_ |j dt |_dS(NR ReRmRgRRh(RcReRiRjRdRkRfR`RgR3timplRbtgetRlRh(Rtd((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt __setstate__!s    (RbRcRdReRfRgRhN( R"R#R$t __slots__RRotpropertyRmRpRrR.RvRzR|RRRRRRRRRRRt __nonzero__RRTRYRRR(((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRa:sD                  c Cst|tsttj}||p*d}|j|p?d}||pQdj|}|j|}|j} xR|pdD]D} | |kr| | d|q| |kr| | dtqqW|rx$|D]} |j | d|qWndS(sFLoad a new collection, firing events based on prior like membership. Appends instances in ``values`` onto the ``new_adapter``. Events will be fired for any instance not present in the ``existing_adapter``. Any instances in ``existing_adapter`` not present in ``values`` will have remove events fired upon them. :param values: An iterable of collection member instances :param existing_adapter: A :class:`.CollectionAdapter` of instances to be replaced :param new_adapter: An empty :class:`.CollectionAdapter` to load with ``values`` RsRuN((((( R+RRwRt IdentitySett intersectiont differenceRrRlRY( tvaluestexisting_adaptert new_adapterRutidsettexisting_idsett constantst additionstremovalsRKtmember((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt bulk_replace,s     cCs|tkrt|}nt|}|tkrOt||}|}ntjrz/t|ddt|krt|nWdtj Xn|S(soPrepare a callable for future use as a collection class factory. Given a collection class factory (either a type or no-arg callable), return another factory that will produce compatible instances when called. This function is responsible for converting collection_class=list into the run-time behavior of collection_class=InstrumentedList. RQN( t__canned_instrumentationttypet__converting_factoryt__instrumentation_mutextacquireR3R.tidt_instrument_classtrelease(tfactoryR1((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytprepare_instrumentationTs     cs<t|fd}dj|_j|_|S(ssReturn a wrapper that converts a "canned" collection like set, dict, list into the Instrumented* version. cs}|S(N((R(tinstrumented_clstoriginal_factory(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytwrappers s %sWrapper(RR"R$(t specimen_clsRR((RRsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRws   cCsg|jdkr!tjdnt|\}}t|||t|||t|||dS(s6Modify methods in a class and install instrumentation.t __builtin__sGCan not instrument a built-in type. Use a subclass, even a trivial one.N(R#R}t ArgumentErrort_locate_roles_and_methodst_setup_canned_rolest_assert_required_rolest_set_collection_attributes(R1Rtmethods((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs c CsPi}i}x7|jD],}x#t|jD]\}}t|sMq/nt|dr|j}|d kswt|j||nd \}}t|dr|j \} } | d kst| | f}nt|d r|j } | dkst| }n|r"||f|||d|krwtt||dd rwd ||d|d|krtt||dd rd ||dType %s must elect an appender method to be a collection classRQRTiRNs<Type %s must elect a remover method to be a collection classRYROs>Type %s must elect an iterator method to be a collection classN(RTiN(RYiN(RR}RR"R3R.(R1RR((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs$   c CsxK|jD]=\}\}}}t||tt|||||q Wx7|jD])\}}t|d|t||q[Wd|_t|dsd|_nt||_ dS(skapply ad-hoc instrumentation from decorators, class-level defaults and implicit role declarations s_sa_%sRkN( RRt_instrument_membership_mutatorR3R.R`RRkRRQ(R1RRt method_nameRRRR((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs" !  csrttjtd}ttr_t|krV|pYdn*|kr}|jnd~nfd}t |_ t drj |_ nj |_ j|_|S(sIRoute method args and/or return value through the collection adapter.ics?rdkrA|kr4tjdn|}qt|kr`|}q|kry|}qtjdn|jdd}|tkrd}n |dj}r|rt|||n s| r||S||}|dk r7t|||n|SdS(NsMissing argument %sRsi(R.R}RRR{RlR`R3(targstkwRRutexecutortres(RRRRt named_argtpos_arg(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR-s0            RLN(RRtflatten_iteratorRR+tintRR.tindexRPRQRRLR"R$(RRRRtfn_argsR((RRRRRRsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs$% #   cCs5|tk r1|j}|r1|j||q1ndS(sERun set wo mutation events. The collection is not mutated. N(RlR`R(RRtRsR((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt__set_wo_mutationXs  cCs7|tk r3|j}|r3|j||}q3n|S(s^Run set events. This event always occurs before the collection is actually mutated. (RlR`RT(RRtRsR((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt__setds   cCs5|tk r1|j}|r1|j||q1ndS(sRun del events. This event occurs before the collection is actually mutated, *except* in the case of a pop operation, in which case it occurs afterwards. For pop operations, the __before_pop hook is called before the operation occurs. N(RlR`RY(RRtRsR((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt__delrs  cCs#|j}|r|j|ndS(s;An event which occurs on a before a pop() operation occurs.N(R`R(RRsR((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt __before_pops c sdfd}fd}fd}fd}fd}tjr~fd}fd}nfd }fd }fd } tjsfd } ntj} | jd | S(s:Tailored instrumentation wrappers for any list-like class.cSs%t|_tt|jj|_dS(N(RPRQR3RR"R$(RM((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt_tidys cs dfd}||S(Ncs#t|||}||dS(N(R(RRtRs(RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR5s(R.(RMR5(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR5s cs dfd}||S(Ncs!t|||||dS(N(R(RRRs(RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytremoves(R.(RMR(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs csfd}||S(Ncs#t||}|||dS(N(R(RRR(RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytinserts((RMR(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs csfd}||S(Nc st|tsW||}|dk r5t||nt||}|||n|jpcd}|jprd}|dkr|t|7}n|jdk r|j}n t|}|dkr|t|7}n|dkrc||krdSx6t |||D]"}t||kr ||=q q Wxt |D] \}}|j |||q<Wnt t |||} t|t| krt dt|t| fnx-t| |D]\}}|j||qWdS(NiisBattempt to assign sequence of size %s to extended slice of size %s(R+tsliceR.RRtsteptstartRtstoptranget enumerateRRt ValueErrortzipt __setitem__( RRRtexistingRRRtiRttrng(RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs<        ((RMR(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs( csfd}||S(Ncsit|ts6||}t||||n/x||D]}t||qAW||dS(N(R+RR(RRRt(RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt __delitem__s  ((RMR(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs csfd}||S(Ncs^x"|||!D]}t||qWg|D]}t||^q,}||||dS(N(RR(RRtendRR(RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt __setslice__s"((RMR(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs csfd}||S(Ncs9x"|||!D]}t||qW|||dS(N(R(RRRR(RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt __delslice__s((RMR(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs csd}||S(NcSs(x!t|D]}|j|q WdS(N(RR5(RtiterableR((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytextends((RMR(R(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs  csd}||S(NcSs(x!t|D]}|j|q W|S(N(RR5(RRR((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt__iadd__s((RMR(R(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs  cs dfd}||S(Nics*t|||}t|||S(N(RR(RRRt(RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR{s  ((RMR{(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR{ s cs dfd}||S(Nics,x|D]}t||qW|dS(N(R(RRRt(RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytclears ((RMR(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRs R(Rtpy2ktlocalstcopyR{( R5RRRRRRRRR{Rtl((RsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyt_list_decoratorss"  ,      csdtjdfd}fd}fd}fd}fd}fd}fd }tj}|jd |jd|S( sBTailored instrumentation wrappers for any dict-like mapping class.cSs%t|_tt|jj|_dS(N(RPRQR3RR"R$(RM((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR/s t Unspecifiedcs dfd}||S(NcsI||kr#t||||nt|||}|||dS(N(RR(RR RRs(RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR6s (R.(RMR(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR5s cs dfd}||S(Ncs4||kr#t||||n||dS(N(R(RR Rs(RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR@s (R.(RMR(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR?s csfd}||S(Ncs0x|D]}t|||qW|dS(N(R(RR (RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRIs ((RMR(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRHs cs#fd}||S(Ncs`t|||k}|kr4||}n|||}|r\t||n|S(N(RR(RR tdefaultt_to_delRt(RRM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR{Rs   ((RMR{(RR(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR{Qs csfd}||S(Ncs+t||}t||d|S(Ni(RR(RRt(RM(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pytpopitemas  ((RMR(R(RMsM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyR`s csdd}||S(NcSsV||kr |j|||S|j|}||krNt||dn|SdS(N(Rt __getitem__RR.(RR RR((sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRks  (R.(RMR(R(sM/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/orm/collections.pyRjs cs fd}||S(Ncs'|k rt|drzxt|D]K}||ksN||||k r_||||hs~   #)     ( #   +   >    k       9