thank's a lot ! it work's
i had the class object to globals() for using the object when i load
my module
===
def add_a_table(tablename):
ClasseTable = DeclarativeMeta("Part_%s"%tablename, (BaseTest,),
(I hope this formats correctly. It seems, sometimes when I copy paste
from my text editor, the email gets strung together in one line.)
I have a migration problem that may be an issue in SA, SA-Migrations or
MySQLdb.
OK, I am narrowing the migration problem down and it looks like an issue
with
On May 30, 2009, at 6:57 AM, klaus wrote:
>
> Let's assume there is a foreign key A.fk -> B.id from table A to table
> B, and these tables and columns are mapped to corresponding classes.
> Then let's translate the foreign key to a reference A.ref -> B via a
> relation.
>
> We can easily join B
Let's assume there is a foreign key A.fk -> B.id from table A to table
B, and these tables and columns are mapped to corresponding classes.
Then let's translate the foreign key to a reference A.ref -> B via a
relation.
We can easily join B onto A: session.query(A).join("ref") or
session.query(A).