[sqlalchemy] Referring to __tablename__ as defined by a mixin's delarative_attr

2015-08-30 Thread rob
Hi All, I'm trying to replace string definitions prgrammatically where possible. I have the following working: from sqlalchemy import Column from sqlalchemy import Integer from sqlalchemy import ForeignKey from sqlalchemy.orm import relationship from sqlalchemy.ext.declarative import

Re: [sqlalchemy] Re: how to set assocation proxy pattern with automap

2015-08-30 Thread Mike Bayer
On 8/29/15 2:27 PM, yoch.me...@gmail.com wrote: Thanks for the reply. Le vendredi 28 août 2015 18:52:37 UTC+3, Michael Bayer a écrit : On 8/28/15 3:51 AM, yoch@gmail.com javascript: wrote: Another question is why sqlalchemy produce two queries to get hardwares collections

Re: [sqlalchemy] Inexplicable NoResultFound error

2015-08-30 Thread Mike Bayer
On 8/29/15 7:51 PM, Demitri Muna wrote: Hi Michael, On Friday, August 28, 2015 at 11:54:17 AM UTC-4, Michael Bayer wrote: this log shows clearly that the second query is not returning any rows at the DBAPI driver level - you can see that unlike the first query, there is no Row

Re: [sqlalchemy] Referring to __tablename__ as defined by a mixin's delarative_attr

2015-08-30 Thread Mike Bayer
On 8/30/15 1:58 PM, r...@rosenfeld.to wrote: Hi All, I'm trying to replace string definitions prgrammatically where possible. I have the following working: | from sqlalchemy import Column from sqlalchemy import Integer from sqlalchemy import ForeignKey from sqlalchemy.orm import