Re: [sqlalchemy] Difficulty using dynamic schemas (ENUM is schema-stubborn). Patch?

2013-01-28 Thread Scott Sadler
Hi Micheal, I tried the before_parent_attach event but it passes the column as the parent, and column.table is still None at that point. Also I'm not sure if that would work since events can be replicated to copies of objects but the event handlers themselves will still refer to the original

Re: [sqlalchemy] Difficulty using dynamic schemas (ENUM is schema-stubborn). Patch?

2013-01-28 Thread Michael Bayer
On Jan 28, 2013, at 10:35 AM, Scott Sadler wrote: Hi Micheal, I tried the before_parent_attach event but it passes the column as the parent, and column.table is still None at that point. oh right, so in this case it might require that you apply the event to Columns, then check the type

[sqlalchemy] Difficulty using dynamic schemas (ENUM is schema-stubborn). Patch?

2013-01-27 Thread Scott Sadler
Hi, I wanted to post here since I had to hack around an issue in order to use SQLAlchemy with a dynamic Postgres schema, and I wanted to see if there's a way I can get the workarounds out of my code. In my app I'm separating the data by dynamically managing the schemas. The basic way this is

Re: [sqlalchemy] Difficulty using dynamic schemas (ENUM is schema-stubborn). Patch?

2013-01-27 Thread Michael Bayer
On Jan 27, 2013, at 4:42 PM, Scott Sadler wrote: Hi, I wanted to post here since I had to hack around an issue in order to use SQLAlchemy with a dynamic Postgres schema, and I wanted to see if there's a way I can get the workarounds out of my code. In my app I'm separating the data by