[sqlalchemy] more than one link between 2 tables

2009-03-30 Thread Marcin Krol
Hello everyone, Anybody? I need to do smth like this in a mapper() call for table 'hosts': 'Earliest_reservation':relation(Reservation, order_by=Reservation.id, backref='hosts'), 'Reservations':relation(Reservation, secondary=reservation_hosts_assoc_table, backref='hosts') That is, I need to c

[sqlalchemy] more than one link between 2 tables

2009-03-26 Thread Marcin Krol
Hello everyone, I need to do smth like this in a mapper() call for table 'hosts': 'Earliest_reservation':relation(Reservation, order_by=Reservation.id, backref='hosts'), 'Reservations':relation(Reservation, secondary=reservation_hosts_assoc_table, backref='hosts') That is, I need to create "l