On 6/12/06, Charles Duffy <[EMAIL PROTECTED]> wrote:

I have a schema where I'm using RelatedJoin to join through an
intermediate table I've manually built a class for (as it has extra
data about the relationship). However, on running "tg-admin sql
create", the table that's actually created isn't the one I built a
class to map to; rather, it's a minimalist table which contains only
the two endpoints of the RelatedJoin.

I understand that passing createJoinTables=No to the SQLObject
createTable call will cause this to happen. Is there any way to
configure TurboGears such that "tg-admin sql create" will pass in this
parameter?

you can set up a call on the bottom of your model.py to make that call.
http://www.sqlobject.org/SQLObject.html#creating-and-dropping-tables
although that will eliminate all middle tables




--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to