Re: [sqlalchemy] engine_from_config and connect_args

2015-01-02 Thread Boris SABATIER
Thanks Michael, Even if it a "code side" solution, I think I will do it. 2014-12-31 1:07 GMT+01:00 Michael Bayer : > > > Boris SABATIER wrote: > >> Thanks Michael for the explanation. >> >> The solution you link solve work but it doesn't satisfy me

Re: [sqlalchemy] engine_from_config and connect_args

2014-12-30 Thread Boris SABATIER
I will use postgre in each environement. 2014-12-30 21:12 GMT+01:00 Michael Bayer : > > > Boris SABATIER wrote: > >> @Michael: >> Are you sure the default value of isolation_level is None ? > > OK what I forgot to clarify in my other email is that you’re working wi

Re: [sqlalchemy] engine_from_config and connect_args

2014-12-30 Thread Boris SABATIER
@Michael: Are you sure the default value of isolation_level is None ? Because when I didn't set to None, I can't use nested session with sqlite and when I set it to None it's works. 2014-12-30 19:42 GMT+01:00 Michael Bayer : > > > Boris Sabatier wrote: > > Hi, &

[sqlalchemy] engine_from_config and connect_args

2014-12-30 Thread Boris Sabatier
Hi, I need to pass connect_args={'isolation_level':None} when I create my engine. With create_engine, it's work well. But I would like to use engine_from_config instead of create_engine. This is what I tried and the errors : # ini file : sqlalchemy.connect_args = {'isolation_level':None} # Er

Re: [sqlalchemy] AmbiguousForeignKeysError or CircularDependencyError

2014-12-11 Thread Boris SABATIER
Thanks Simon it's work !!! 2014-12-11 16:06 GMT+01:00 Simon King : > On Thu, Dec 11, 2014 at 2:44 PM, Boris Sabatier > wrote: >> Hi, >> >> I have a problem to do the model I need. >> I have 3 types of object : Category, Picture and Video. >> >> A

[sqlalchemy] AmbiguousForeignKeysError or CircularDependencyError

2014-12-11 Thread Boris Sabatier
Hi, I have a problem to do the model I need. I have 3 types of object : Category, Picture and Video. All of these types have some common part, like a name. Also I want to be able to select all object with a name like "bar" (Category, Picture and Video) So I use the Joined_table inheritance patte