[sqlalchemy] Re: post-populate extension (2)

2008-03-26 Thread Rick Morrison
Also be aware that the API to populate_instance() has changed (ironically, the very thing that I was worrying about in the thread) Update this: def populate_instance(self, mapper, selectcontext, row, instance, identitykey, isnew): if isnew:

[sqlalchemy] Re: post-populate extension (2)

2008-03-25 Thread Michael Bayer
we have a new hook that will be coming soon called something like __reconstitute__(), which will be called on instances after they've been created and had their initial population from the result row. Note that eagerly-loaded collections might not be fully loaded at this stage. at the