I don't see the Problem here, one-to-many for Post-Comments
should work exactly like Director-Movies in this example:
http://turboentity.ematia.de/examples.html#s1
ie.
class Post (Entity):
# properties here...
comments = OneToMany("Comment")
class Comment (Entity):
# properties here...
post = ManyToOne("Post")
You might want to specify backrefs, if you'd have more
one-to-many-relationships between Post and Comments, like
this:
class Post (Entity):
# properties here...
comments = OneToMany("Comment", backref="post")
class Comment (Entity):
# properties here...
post = ManyToOne("Post", backref="comments")
details here:
http://turboentity.ematia.de/docs.html#s3
Daniel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---