[sqlalchemy] Re: DeferredReflection with a foreign table, no primary key

2016-10-13 Thread Eric
Thank you Mike, That worked great (of course). Also thank you for the work you've done with open source and the incredible support you provide. Sincerely, Eric On Wednesday, October 12, 2016 at 11:13:28 PM UTC-7, Eric wrote: > > Hi, > I have a models.py file where I'd like to define all the tab

[sqlalchemy] sqlalchemy import issue in powa web

2016-10-13 Thread Ulhas Kanaskar
[root@test01 powa-web-3.0.1]# ./powa-web Traceback (most recent call last): File "./powa-web", line 2, in from powa import make_app File "/home/postgres/powa/powa-web-3.0.2/powa/__init__.py", line 17, in from powa.overview import Overview File "/home/postgres/powa/powa-web-

Re: [sqlalchemy] Preventing mapper updates from triggering a "before_update" event?

2016-10-13 Thread Mike Bayer
On 10/13/2016 11:59 AM, Colton Allen wrote: Hi all, I have a primary model with a "before_update" event and a secondary model with a foreign key to the primary model. When I create a secondary model, the primary model's "before_update" event is triggered. I believe this is because the backre

[sqlalchemy] Preventing mapper updates from triggering a "before_update" event?

2016-10-13 Thread Colton Allen
Hi all, I have a primary model with a "before_update" event and a secondary model with a foreign key to the primary model. When I create a secondary model, the primary model's "before_update" event is triggered. I believe this is because the backref is being updated. Can I prevent this behav

Re: [sqlalchemy] DeferredReflection with a foreign table, no primary key

2016-10-13 Thread Mike Bayer
On 10/13/2016 02:13 AM, Eric wrote: Hi, I have a models.py file where I'd like to define all the table classes and then interact with them from my main module file (desktop app). I am connecting to Postgres 9.5 and have attached another Postgres database on the same server (localhost) with pos