I can't believe this is not a FAQ, but my Google skills are failing me
at finding an answer.

If I have a hierarchy of categories, and my model looks like this:

class Category(SQLObject):
    name = UnicodeCol(length=100)
    parent = ForeignKey("Category")

How do I create a method on Category so that I can retrieve all the
children for a Category instance?  I have a feeling that it has
something to do with Alias, but I can't quite get the incantation.


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

Reply via email to