Re: [sqlalchemy] Association Object creation

2011-11-23 Thread Enrico Morelli
On Wed, 23 Nov 2011 10:59:03 +0100 Enrico Morelli more...@cerm.unifi.it wrote: These are the mappers: mapper(Ligand, ligand_table, properties={ 'ligand':relationship(LigandLigand, primaryjoin=and_(ligand_table.c.id==ligand_ligand_table.c.ligand_id1,

Re: [sqlalchemy] Association Object creation

2011-11-23 Thread Michael Bayer
On Nov 23, 2011, at 5:20 AM, Enrico Morelli wrote: On Wed, 23 Nov 2011 10:59:03 +0100 Enrico Morelli more...@cerm.unifi.it wrote: These are the mappers: mapper(Ligand, ligand_table, properties={ 'ligand':relationship(LigandLigand,

Re: [sqlalchemy] Association object

2011-02-09 Thread Enrico Morelli
On Wed, 9 Feb 2011 10:34:22 +0100 Enrico Morelli more...@cerm.unifi.it wrote: mapper(AtomInfo, atominfo_table, properties={ 'residue': relationship(ResidueInfo, backref='atominfo'), 'periodic': relationship(Periodic, backref='atominfo'), 'atom1':

Re: [sqlalchemy] Association object

2011-02-09 Thread Michael Bayer
On Feb 9, 2011, at 4:34 AM, Enrico Morelli wrote: Dear all, I've to create an association object where the many-to-many relation has to be created with only one table: atominfo_table = Table('atom_info', metadata, Column('id', types.Integer, primary_key=True), Column('number',