Hi Michael, On Fri, 2010-06-18 at 11:32 -0400, Michael Bayer wrote:
> > session.get_instance_by_key(key) > > > > to be in the API, but I am unable to find it. > > > > Any hints? > > technically query._get() does this, but in a public sense, for the moment, > you'd say > > session.query(key[0]).get(key[1]) > > I say for the moment since the above makes some assumptions about the format > of the key itself, which is less than ideal. We haven't built comprehensive > patterns out based on identity keys, those util methods are currently the > product of one particular user who really wanted to work that way. Thanks for your fast reply. I guess I'll go that route than for now. :) Greetings, Torsten -- DYNAmore Gesellschaft fuer Ingenieurdienstleistungen mbH Torsten Landschoff Office Dresden Tel: +49-(0)351-4519587 Fax: +49-(0)351-4519561 mailto:torsten.landsch...@dynamore.de http://www.dynamore.de Registration court: Mannheim, HRB: 109659, based in Karlsruhe, Managing director: Prof. Dr. K. Schweizerhof, Dipl.-Math. U. Franz -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.