[sqlalchemy] Re: Emptying out the session of new objects

2008-01-05 Thread Dave Harrison
On Sunday 06 January 2008 05:30:04 Michael Bayer wrote: > On Jan 4, 2008, at 9:46 PM, Dave Harrison wrote: > > Hey Mike, > > > > Below is a minimal test case that always produces the below failure > > for me under 0.4.2 but not under 0.4.1, > > OK, its actually something that was "buggy" in 0.4.1

[sqlalchemy] Re: Emptying out the session of new objects

2008-01-05 Thread Michael Bayer
On Jan 4, 2008, at 9:46 PM, Dave Harrison wrote: > Hey Mike, > > Below is a minimal test case that always produces the below failure > for me under 0.4.2 but not under 0.4.1, > OK, its actually something that was "buggy" in 0.4.1 but didnt produce a symptom, give r4003 a try which fixes this

[sqlalchemy] Re: Emptying out the session of new objects

2008-01-04 Thread Dave Harrison
On Saturday 05 January 2008 03:08:54 Michael Bayer wrote: > On Jan 4, 2008, at 7:44 AM, Dave Harrison wrote: > > On Friday 04 January 2008 23:32:21 Alexandre da Silva wrote: > >>> Is there an easy way of flushing all objects that are categorised > >>> as new in the session ?? > >> > >> I think you

[sqlalchemy] Re: Emptying out the session of new objects

2008-01-04 Thread Michael Bayer
On Jan 4, 2008, at 7:44 AM, Dave Harrison wrote: > > On Friday 04 January 2008 23:32:21 Alexandre da Silva wrote: >>> Is there an easy way of flushing all objects that are categorised >>> as new in the session ?? >> >> I think you can use session.clear(), it will remove objects from >> session,

[sqlalchemy] Re: Emptying out the session of new objects

2008-01-04 Thread svilen
On Friday 04 January 2008 14:44:32 Dave Harrison wrote: > On Friday 04 January 2008 23:32:21 Alexandre da Silva wrote: > > > Is there an easy way of flushing all objects that are > > > categorised as new in the session ?? > > > > I think you can use session.clear(), it will remove objects from > >

[sqlalchemy] Re: Emptying out the session of new objects

2008-01-04 Thread Dave Harrison
On Friday 04 January 2008 23:32:21 Alexandre da Silva wrote: > > Is there an easy way of flushing all objects that are categorised > > as new in the session ?? > > I think you can use session.clear(), it will remove objects from > session, and persistent objects will stay on database. > > Att > >

[sqlalchemy] Re: Emptying out the session of new objects

2008-01-04 Thread Alexandre da Silva
> Is there an easy way of flushing all objects that are categorised as > new in the session ?? I think you can use session.clear(), it will remove objects from session, and persistent objects will stay on database. Att Alexandre --~--~-~--~~~---~--~~ You receiv