you can point to the object too, just dont put it in a string:

        ForeignKey(othertable.c.mycol)



On Mar 27, 2006, at 10:26 PM, Jose Galvez wrote:

Michael Bayer wrote:
Oh OK, heres  the full error (also helpful):

File "/Users/classic/dev/sqlalchemy/lib/sqlalchemy/schema.py", line
71, in __call__
    raise ArgumentError("Table '%s.%s' not defined" % (schema, name))
sqlalchemy.exceptions.ArgumentError: Table 'None.People' not defined

the ForeignKey in Things should point to "people.id", not "People.id"
which does not exist.

Oh I get it, I need to point to the actual table column, not the Object
thats created for that column.  Thanks for the help it makes sense now
Thanks again for help
Jose







-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel? cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to