Sorry, disregard—wrong mailing list!  This is Flask-SQLAlchemy-specific.

On Mon, Oct 21, 2013 at 11:51 PM, Yang Zhang <yanghates...@gmail.com> wrote:
> Specifically, the code path where this is appearing ends up looking like:
>
> session = sqlalchemy.orm.Session(sqlalchemy.create_engine('sqlite:///'))
> session.execute('run_some_transaction()')
> session.commit()
>
> This raises:
>
> AttributeError: 'Session' object has no attribute '_model_changes'
>
> I get that there's nothing happening at the Session layer, but how
> else do I achieve this without having to duplicating my code to use
> raw Connections instead of Sessions?  (Most of my code *does* use
> Sessions; only under certain conditions does no Session layer activity
> actually take place.)



-- 
Yang Zhang
http://yz.mit.edu/

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to