diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-07-21 16:19:08 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-07-21 16:19:08 -0400 |
commit | 5ab558004c816deb258eef16b340c1cf9cda7776 (patch) | |
tree | a4bac66a7037813eccbe23d7206de187dec735cf /examples/beaker_caching/helloworld.py | |
parent | 9e84c0251f3480deab96728f3642527f69076bcb (diff) | |
download | sqlalchemy-5ab558004c816deb258eef16b340c1cf9cda7776.tar.gz |
- The beaker_caching example has been reorgnized
such that the Session, cache manager,
declarative_base are part of environment, and
custom cache code is portable and now within
"caching_query.py". This allows the example to
be easier to "drop in" to existing projects.
Diffstat (limited to 'examples/beaker_caching/helloworld.py')
-rw-r--r-- | examples/beaker_caching/helloworld.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/beaker_caching/helloworld.py b/examples/beaker_caching/helloworld.py index 3d37777d7..f64fcdd2e 100644 --- a/examples/beaker_caching/helloworld.py +++ b/examples/beaker_caching/helloworld.py @@ -4,9 +4,9 @@ Illustrate how to load some data, and cache the results. """ -import environment +from environment import Session from model import Person -from meta import Session, FromCache +from caching_query import FromCache # load Person objects. cache the result under the namespace "all_people". print "loading people...." |