On 12/21/06, Alan Franzoni <[EMAIL PROTECTED]> wrote:
> > A better solution is to do > sess = object_session(self) That's wonderful and I didn't know about it! Finally I'll give up passing session around my code!
Personally, I prefer the use of assign_mapper[1]. Your code then looks a lot nicer when doing things like deletes. a = A.get(1) a.delete() [1]: http://www.sqlalchemy.org/docs/plugins.myt#plugins_assignmapper Lee -- Lee McFadden blog: http://www.splee.co.uk work: http://fireflisystems.com skype: fireflisystems --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---