On 2/12/07, Tor Hildrum <[EMAIL PROTECTED]> wrote: > > On 2/12/07, Jorge Vargas <[EMAIL PROTECTED]> wrote: > > > I remember having something like this but can't recall how it was fix, > > could you post this to the SO list, (just the sql sql output and both > > User and Group classes) > > I'm not sure what I would tell the SO list. > tg-admin sql sql produces the correct SQL, which means > SQLObject is producing the correct SQL. My problem is that > tg-admin sql create isn't creating all the tables. > I believe there was an issue with both classes telling the table name and they are both trying to create the table twice, just post it trust me Oleg will remember :)
> Practically, this is a non-issue because I can just create this > table manually myself. But, I'd rather track it down to understand > why things aren't working as expected. > > I'll try to hack in a debug-switch to 'tg-admin sql create' and see if I > get any wiser. > actually it already exists add you your db_uri ?debug=1, that will show you everything SO is throwing at the db. http://www.sqlobject.org/SQLObject.html#declaring-the-class > > Now may I ask why your specifying those? your just setting the values > > to their defaults so none of those params are needed. > > I'm not sure I understand what you are refering to here? > try it out as >From the Group-class: # collection of all users belonging to this group users = RelatedJoin("User") And the User-class: # groups this user belongs to groups = RelatedJoin("Group") the values you have been setting in intermediateTable,joinColumn and otherColumn, are the defaults SO will give. > regards > > Tor > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

