[sqlalchemy] Re: Two foreignkey's to the same table, rendering a join error.

2008-10-06 Thread Jorge Vargas
On Sun, Oct 5, 2008 at 8:56 AM, Michael Bayer [EMAIL PROTECTED] wrote: you can use strings with Python in them when you use declarative even with args like primaryjoin, so you could say things like: class Policy(DeclarativeBase): __tablename__ = 'policy' policy_state =

[sqlalchemy] Re: Two foreignkey's to the same table, rendering a join error.

2008-10-05 Thread Michael Bayer
you can use strings with Python in them when you use declarative even with args like primaryjoin, so you could say things like: class Policy(DeclarativeBase): __tablename__ = 'policy' policy_state =

[sqlalchemy] Re: Two foreignkey's to the same table, rendering a join error.

2008-10-04 Thread Jorge Vargas
hi I finally made this work. Thanks for the doc link although it wasn't clear enough. As it's using the classical syntax. But the last paragraph of that section gave me a good hint. I have extracted the relevant parts of my model and I got to something that could become a FAQ item or a tutorial

[sqlalchemy] Re: Two foreignkey's to the same table, rendering a join error.

2008-09-26 Thread Michael Bayer
Information on primaryjoin and secondaryjoin is available at: http://www.sqlalchemy.org/docs/05/mappers.html#advdatamapping_relation_customjoin On Sep 25, 2008, at 8:18 PM, Jorge Vargas wrote: hello I'm having a bit of troubles with the following case.