SQLAlchemy and Turbogears - defunct "select()"

0 views
Skip to first unread message

wellhong

unread,
Jul 21, 2008, 6:34:13 PM7/21/08
to TurboGears
Hey all,

Just wanted to let you know that I was using this page (http://
lucasmanual.com/mywiki/
TurboGears#head-8457721059b18a5f2264f8484082deb5b294d27a) as a
reference for using SQLAlchemy in TG but found one vital thing that
was a little out of date: ".select()" no longer works.

I'm sure I might have been a little behind on the announcement but
this was driving me up the wall. Instead, I referred to these two
links (http://www.sqlalchemy.org/docs/04/sqlalchemy_orm_query.html and
http://docs.turbogears.org/1.0/SQLAlchemy) and found that I just
needed to add ".query().all()" instead of doing something like
SomeObject.select(). Just an FYI in case anyone else was stuck on this.
Reply all
Reply to author
Forward
0 new messages