#1194: import sqlalchemy.ext.assignmapper in model.py
-------------------------------+--------------------------------------------
Reporter: maurizio.boscaini | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: unassigned | Version: 1.0b2
Severity: normal | Resolution:
Keywords: |
-------------------------------+--------------------------------------------
Comment (by kskuhlman):
Changing the assign_mapper statements as below seems work as well (eg,
without adding the import)
mapper(Visit, visits_table)
mapper(VisitIdentity, visit_identity_table,
properties=dict(users=relation(User, backref='visit_identity')))
mapper(User, users_table)
mapper(Group, groups_table,
properties=dict(users=relation(User,secondary=user_group_table,
backref='groups')))
mapper(Permission, permissions_table,
properties=dict(groups=relation(Group,secondary=group_permission_table,
backref='permissions')))
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1194>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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-tickets?hl=en
-~----------~----~----~----~------~----~------~--~---