On 5/16/06, Matthew Bevan <[EMAIL PROTECTED]> wrote:
>
> Try:
>
> > class Page(SQLObject):
> > parent_page = ForeignKey('Page')
> > child_pages = MultipleJoin('Page', joinColumn="parent_page_id")
>
> Also useful, if page order is important, is adding a orderBy to child_pages.
This worked for me.
It's a bit too much magic for my taste, because I don't have a
parent_page_id column and I couldn't find any documentation anywhere
that suggests that name would be created (I would have expected
parent_pageID or something).
Thanks for all the help from people.
Ed
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---