[sqlalchemy] Re: selecting from a relation

2007-04-12 Thread ml
See attachment. Tested against 0.3.6. Michael Bayer napsal(a): On Apr 12, 2007, at 12:53 PM, ml wrote: I tried s.query(Address).select_by(user=u) as I found similar in the documentation (http://www.sqlalchemy.org/docs/ datamapping.html#datamapping_selectrelations_relselectby) but SA

[sqlalchemy] Re: selecting from a relation

2007-04-12 Thread ml
I'm such a moron. I downloaded the SA source into a sqlalchemy3 directory but the SA expects it in a sqlalchemy package so it was internaly loading the old 0.2.8 Ubuntu version. Sorry! :-) Michael Bayer napsal(a): On Apr 12, 2007, at 12:53 PM, ml wrote: I tried

[sqlalchemy] Re: selecting from a relation

2007-04-12 Thread Michael Bayer
it runs for me with 0.3.6 and the trunk. the end of the output is: 2007-04-12 16:57:20,733 INFO sqlalchemy.engine.base.Engine.0x..b0 SELECT addresses.id_user AS addresses_id_user, addresses.id AS addresses_id, addresses.addr AS addresses_addr FROM addresses, users WHERE (users.id = ?) AND

[sqlalchemy] Re: selecting from a relation

2007-04-12 Thread Michael Bayer
there you go. On Apr 12, 2007, at 4:31 PM, ml wrote: I'm such a moron. I downloaded the SA source into a sqlalchemy3 directory but the SA expects it in a sqlalchemy package so it was internaly loading the old 0.2.8 Ubuntu version. Sorry! :-) Michael Bayer napsal(a): On Apr 12, 2007,