σ ΓΜ4]c@@sΏdZddlmZddlZddlZddlZddlmZddlmZej e ƒZ ej e ƒZ d„Z d„Zd „Zd „Zd „Zd efd „ƒYZdS(sJProvides managed registration services on behalf of :func:`.listen` arguments. By "managed registration", we mean that event listening functions and other objects can be added to various collections in such a way that their membership in all those collections can be revoked at once, based on an equivalent :class:`._EventKey`. i(tabsolute_importNi(texc(tutilcC@s}t s|tkrdStj|ƒ}xP|jƒD]B}|tkr3t|}|j|ƒ|sutj|ƒquq3q3WdS(N(t_collection_to_keytpoptvaluest_key_to_collection(treftlistener_to_keytkeyt dispatch_reg((sL/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/event/registry.pyt_collection_gced5s   cC@s`|j}t|}|j}tj|jƒ}||kr>tS|||s