[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: - Fixed a regression regarding the :meth:`.MapperEv
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2015-04-26 22:23:12
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/6c0f30db81d1/ Changeset: 6c0f30db81d1 Branch: None User: zzzeek Date: 2015-04-26 22:22:41+00:00 Summary: - Fixed a regression regarding the :meth:`.MapperEvents.instrument_class` event where its invocation was moved to be after the class manager's instrumentation of the class, which is the opposite of what the documentation for the event explicitly states. The rationale for the switch was due to Declarative taking the step of setting up the full "instrumentation manager" for a class before it was mapped for the purpose of the new ``@declared_attr`` features described in :ref:`feature_3150`, but the change was also made against the classical use of :func:`.mapper` for consistency. However, SQLSoup relies upon the instrumentation event happening before any instrumentation under classical mapping. The behavior is reverted in the case of classical and declarative mapping, the latter implemented by using a simple memoization without using class manager. fixes #3388 Affected #: 6 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |