diff options
| author | Michael Trier <mtrier@gmail.com> | 2009-03-31 22:31:08 +0000 |
|---|---|---|
| committer | Michael Trier <mtrier@gmail.com> | 2009-03-31 22:31:08 +0000 |
| commit | 6010afb28f95c7050ca48ddd2e6f65ca6cbae5a1 (patch) | |
| tree | 46259c03c209a89702c32c939c8ea035edee9425 /examples/nested_sets/nested_sets.py | |
| parent | 832ea82fefa366f4717e889511f66ecfce3313de (diff) | |
| download | sqlalchemy-6010afb28f95c7050ca48ddd2e6f65ca6cbae5a1.tar.gz | |
Lots of fixes to the code examples to specify imports explicitly.
Explicit imports make it easier for users to understand the examples.
Additionally a lot of the examples were fixed to work with the changes in the
0.5.x code base. One small correction to the Case expression. Thanks a bunch
to Adam Lowry! Fixes #717.
Diffstat (limited to 'examples/nested_sets/nested_sets.py')
| -rw-r--r-- | examples/nested_sets/nested_sets.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/nested_sets/nested_sets.py b/examples/nested_sets/nested_sets.py index e83a263e9..fbb481759 100644 --- a/examples/nested_sets/nested_sets.py +++ b/examples/nested_sets/nested_sets.py @@ -4,9 +4,9 @@ http://www.intelligententerprise.com/001020/celko.jhtml """ -from sqlalchemy import * -from sqlalchemy.orm import * -from sqlalchemy.orm import attributes +from sqlalchemy import (create_engine, Column, Integer, String, select, case, + func) +from sqlalchemy.orm import sessionmaker, MapperExtension, aliased from sqlalchemy.ext.declarative import declarative_base engine = create_engine('sqlite://', echo=True) |
