Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1194 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

import sqlalchemy.ext.assignmapper in model.py

Reported by: maurizio.boscaini Owned by: anonymous
Priority: normal Milestone:
Component: unassigned Version: 1.0b2
Severity: normal Keywords:
Cc:

Description

tg-admin quickstart -i -s myapp

in model.py you need to add:

from sqlalchemy.ext.assignmapper import assign_mapper

Change History

comment:1 Changed 12 years ago 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')))

comment:2 Changed 12 years ago by fredlin

  • Status changed from new to closed
  • Resolution set to fixed

same ticket as #1163, which was fixed in [2149]

Note: See TracTickets for help on using tickets.