From 274fec2460540574265ed851a9d60e43ba4d4f57 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 8 Jan 2013 11:05:13 -0500 Subject: [PATCH] note the change needed to the beaker example also --- doc/build/changelog/migration_08.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/doc/build/changelog/migration_08.rst b/doc/build/changelog/migration_08.rst index 7d4cc4991e..33e80839f7 100644 --- a/doc/build/changelog/migration_08.rst +++ b/doc/build/changelog/migration_08.rst @@ -582,6 +582,23 @@ Dogpile.cache is a rewrite of the caching portion of Beaker, featuring vastly simpler and faster operation, as well as support for distributed locking. +Note that the SQLAlchemy APIs used by the Dogpile example as well +as the previous Beaker example have changed slightly, in particular +this change is needed as illustrated in the Beaker example:: + + --- examples/beaker_caching/caching_query.py + +++ examples/beaker_caching/caching_query.py + @@ -222,7 +222,8 @@ + + """ + if query._current_path: + - mapper, key = query._current_path[-2:] + + mapper, prop = query._current_path[-2:] + + key = prop.key + + for cls in mapper.class_.__mro__: + if (cls, key) in self._relationship_options: + .. seealso:: :mod:`dogpile_caching` @@ -976,6 +993,8 @@ use cases should use the new "before_attach" event: :ticket:`2464` + + Query now auto-correlates like a select() does ---------------------------------------------- -- 2.47.2