"Jim Steil" <[EMAIL PROTECTED]> writes:
> Jorge: That worked. I've been trying lots of different combinations but
> never thought to try it with both the I & D capitalized. I specified the
> dbName parameter in the model. Does that dbName refer to the joined table?
dbName is the name created on the database. It is not the mapped name. If
you write:
table = ForeigKey('Table')
then you'll end up with table_id on the database (unless you changed the way
mapping happens -- you can read SQL Object's docs to see how),
model.class.q.table being an instance of 'Table' class and
model.class.q.tableID being the value fot the table_id column -- i.e., the FK
here has the same value as the PK there, it's a 1:1 mapping.
When you specify dbName you're overriding the rules to create the names inside
the database, so instead of 'table_id' you'll get something else.
--
Jorge Godoy <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---