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 mike...@zzzcomputing.com: Boris SABATIER sabatier.bo...@gmail.com wrote: Thanks Michael for the explanation. The solution you link solve work but it doesn't satisfy me. I use

[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} #

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 mike...@zzzcomputing.com: Boris Sabatier sabatier.bo...@gmail.com

Re: [sqlalchemy] engine_from_config and connect_args

2014-12-30 Thread Boris SABATIER
-12-30 21:12 GMT+01:00 Michael Bayer mike...@zzzcomputing.com: Boris SABATIER sabatier.bo...@gmail.com 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 with “connect_args” here, which

[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

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 si...@simonking.org.uk: On Thu, Dec 11, 2014 at 2:44 PM, Boris Sabatier sabatier.bo...@gmail.com wrote: 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