diff options
Diffstat (limited to 'lib/sqlalchemy/ext/activemapper.py')
-rw-r--r-- | lib/sqlalchemy/ext/activemapper.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/sqlalchemy/ext/activemapper.py b/lib/sqlalchemy/ext/activemapper.py index 2fcf44f61..fa32a5fc3 100644 --- a/lib/sqlalchemy/ext/activemapper.py +++ b/lib/sqlalchemy/ext/activemapper.py @@ -1,11 +1,10 @@ -from sqlalchemy import create_session, relation, mapper, \ - join, ThreadLocalMetaData, class_mapper, \ - util, Integer -from sqlalchemy import and_, or_ +from sqlalchemy import ThreadLocalMetaData, util, Integer from sqlalchemy import Table, Column, ForeignKey +from sqlalchemy.orm import class_mapper, relation, create_session + from sqlalchemy.ext.sessioncontext import SessionContext from sqlalchemy.ext.assignmapper import assign_mapper -from sqlalchemy import backref as create_backref +from sqlalchemy.orm import backref as create_backref import sqlalchemy import inspect @@ -14,7 +13,7 @@ import sys # # the "proxy" to the database engine... this can be swapped out at runtime # -metadata = ThreadLocalMetaData("activemapper") +metadata = ThreadLocalMetaData() try: objectstore = sqlalchemy.objectstore |