Robin Haswell wrote:
> Hey
> 
> Quickie post because I gotta go to bed. This bit me a few nights ago, quick 
> answer:
> 
> class Foo(SQLObject):
>       bar = ForeignKey("Baz")
> 
> Column is Foo.q.bazID

Hm I just realised, this could well be barID, but I doubt it.
Unfortunately when I worked it out I was doing "player =
ForeignKey('Player')" and got ".q.playerID", which is a bit ambiguous.

-Rob

> 
> You can do Foo.select(AND(Foo.q.bazID == Baz.q.id, Baz.q.something == 
> "whatever"))
> 
> I agree. SO is rubbish in this respect.
> 
> Night night.
> 
> -Rob

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