kerinin wrote:
> class Project(SQLObject):
> name = StringCol(length=200, alternateID=True, notNone=True)
> description = StringCol()
> tags = RelatedJoin('Tag')
>
> class Tag(SQLObject):
> name = StringCol(length=50, alternateID=True)
> icon_uri = StringCol(length=200)
> projects = RelatedJoin('Tag')
is the last line a typo? You really mean
projects = RelatedJoin('Project')
right? And if so can't you just then do
t = Tag.byName('a given tag')
projects = list(t.projects)
to get all the projects for a given tag?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---