The quickstart-generated model.py worked for me as soon as I took out
the (in my eyes) superfluous many_to_many-properties.
Example:
class Group (ActiveMapper):
class mapping:
__table__ = "tg_group"
group_id = column(Integer, primary_key=True)
[...]
users = many_to_many("User", user_group, backref="groups")
here we have already defined the property "groups" in the entity "User"
in form of a backref, so we can just throw out the line "groups =
many_to_many(...)" inside the class "User", right? With the
many_to_many-relationship defined twice, the ActiveMapper did not work
for me.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---