[sqlalchemy] Re: Unsaved, pending instance and is an orphan problem

2009-07-25 Thread Michael Bayer
On Jul 24, 2009, at 10:33 AM, Michael Bayer wrote: Michael Bayer wrote: Victor Lin wrote: It is a TODO within SQLAlchemy for this particular operation to not trigger an unnecessary load. I've added a patch as well as your test as http://www.sqlalchemy.org/trac/ticket/1483 to address

[sqlalchemy] Re: Unsaved, pending instance and is an orphan problem

2009-07-24 Thread Michael Bayer
Victor Lin wrote: Hi, I am writing a turbogears2 application, with elixir. I got a problem when I try to create an new entity and attach it to another entity. I create a simple program to repruduce the problem: from elixir import * class User(Entity): name = Field(Unicode)

[sqlalchemy] Re: Unsaved, pending instance and is an orphan problem

2009-07-24 Thread Michael Bayer
Michael Bayer wrote: Victor Lin wrote: It is a TODO within SQLAlchemy for this particular operation to not trigger an unnecessary load. I've added a patch as well as your test as http://www.sqlalchemy.org/trac/ticket/1483 to address the unnecessary load issue. It needs more testing to