K, here's a snipppet that shows the populate_instance catch. It's
pretty straightforward, but the way that the hook takes (row,
instance) in that order, while the callback to the mapper takes
(instance, row)  got me thinking about calling back to internals and
API stability.


    def populate_instance(self, mapper, selectcontext, row, instance,
identitykey, isnew):
        if isnew:
            mapper.populate_instance(selectcontext, instance, row,
identitykey, isnew)
            instance.onload()
            return None
        return EXT_PASS

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to