[sqlalchemy] Search in result

2016-03-15 Thread Cecilio Ruiz
Hi ! Assuming this result: n = session.query(xx).all() How I can find the id 5 on the 'n' ? something like that.: v = n.get(5) Thanks. -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails

Re: [sqlalchemy] Problem with hybrid_property

2015-10-14 Thread Cecilio Ruiz
ch:None Grup:grp', Ent: 50' Sal: 10 > Imp:40.00)> > >>> c.imp > 40.0 > >>> sa.__version__ > ‘1.0.8' > > > Have you tried printing out the things I suggested earlier? > > Simon > > > On 14 Oct 2015, at 08:58, Cecilio Ruiz <c

[sqlalchemy] Problem with hybrid_property

2015-10-13 Thread Cecilio Ruiz
Everything works fine, add, modify, etc. But when I ask Caja.Imp. He says he does not exist. # Table definition - Caja # Caja_table = sa.Table("Caja", metadata, sa.Column('id', sa.Integer, nullable=True, autoincrement=True, primary_key=True), sa.Column('Entidad', sa.String,

Re: [sqlalchemy] Problem with hybrid_property

2015-10-13 Thread Cecilio Ruiz
The error message says: : "AttributeError: 'Caja' object has no attribute 'imp' Yes, is typo error en email. The imp attibute is lower case. El martes, 13 de octubre de 2015, 23:01:34 (UTC+2), Simon King escribió: > > return "