Re: [sqlalchemy] Re: Custom type does not seem to honour is_mutable

2010-08-13 Thread Michael Bayer
hey no problem glad you're back in business. On Aug 13, 2010, at 11:35 AM, Dan wrote: > The issue appeared to be removing the session instance > (session.remove()) - I was trying to get a clean session for testing. > > Anyway, works fine now - thanks for your help and sorry for wasting > your t

[sqlalchemy] Re: Custom type does not seem to honour is_mutable

2010-08-13 Thread Dan
The issue appeared to be removing the session instance (session.remove()) - I was trying to get a clean session for testing. Anyway, works fine now - thanks for your help and sorry for wasting your time. On Aug 13, 4:21 pm, Dan wrote: > > that code snippet is not complete (doesn't create a Sessi

[sqlalchemy] Re: Custom type does not seem to honour is_mutable

2010-08-13 Thread Dan
> that code snippet is not complete (doesn't create a Session, doesn't add Post > to it, doesn't commit() or flush() the session but then removes it so I guess > maybe its a scoped_session, don't know) so I don't actually know what you're > doing.   The test case below adds your assertion, uses

Re: [sqlalchemy] Re: Custom type does not seem to honour is_mutable

2010-08-13 Thread Michael Bayer
On Aug 13, 2010, at 10:45 AM, Dan wrote: > Unfortunately still getting the same result: > > http://paste.pocoo.org/show/249801/ > > The test snippet shows that the modified set is not actually saved to > the database. that code snippet is not complete (doesn't create a Session, doesn't add Pos

[sqlalchemy] Re: Custom type does not seem to honour is_mutable

2010-08-13 Thread Dan
Unfortunately still getting the same result: http://paste.pocoo.org/show/249801/ The test snippet shows that the modified set is not actually saved to the database. On Aug 13, 3:29 pm, Michael Bayer wrote: > On Aug 13, 2010, at 10:24 AM, Dan wrote: > > > > > > > On Aug 13, 3:17 pm, Michael Baye

Re: [sqlalchemy] Re: Custom type does not seem to honour is_mutable

2010-08-13 Thread Michael Bayer
On Aug 13, 2010, at 10:24 AM, Dan wrote: > > > On Aug 13, 3:17 pm, Michael Bayer wrote: >> On Aug 13, 2010, at 10:01 AM, Dan wrote: >> >>> I have created a custom type in order to store denormalized PKs in a >>> TEXT field. The idea is that the text is converted back and forth from >>> a set

[sqlalchemy] Re: Custom type does not seem to honour is_mutable

2010-08-13 Thread Dan
On Aug 13, 3:17 pm, Michael Bayer wrote: > On Aug 13, 2010, at 10:01 AM, Dan wrote: > > > I have created a custom type in order to store denormalized PKs in a > > TEXT field. The idea is that the text is converted back and forth from > > a set of integers: > > >http://paste.pocoo.org/show/249784