[sqlalchemy] Re: pickle and mapped objects

2007-01-14 Thread Michael Bayer
if you can pickle the object by itself, then id guess youre using lazy loaders with the query.options(lazyload('something')) call, which places per-object lazy loaders (i.e. callables) on your objects. either make sure the lazy loaders are fired off, or make lazyload the default loading for that

[sqlalchemy] Re: MSSQL session.flush() doesn't always fetch primary keys

2007-01-14 Thread Paul Johnston
Hi, Ok, I have updated ticket #415 with a proposed patch. Also, #298 is I think ready to commit, if someone gets a chance to look at it. On another note, I'm having no luck getting hold of the adodbapi author. Any ideas what I can do about this? Best wishes, Paul Rick Morrison wrote:

[sqlalchemy] Re: MSSQL session.flush() doesn't always fetch primary keys

2007-01-14 Thread Michael Bayer
ive made a commit on #298 but not what we originally planned. give it a try and see if it works since i didnt test on ms-sql. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups sqlalchemy group. To post to this

[sqlalchemy] Re: Multiple mappers for Many to Many Relationships

2007-01-14 Thread Michael Bayer
when you say this: class AlbumComment(object):pass mapper(AlbumComment, AlbumCommentTable) #relationship between Albums and Comments albumCommentMapper = mapper(AlbumComment, AlbumCommentTable, properties = {'comments':relation(Comment, secondary=AlbumCommentTable, lazy=False)}) youre making

[sqlalchemy] Re: Multiple mappers for Many to Many Relationships

2007-01-14 Thread percious
Thanks Mike. Works fine. I'll buy you a beer at Pycon if I see you there... Please let me know if we can fix my original post like I emailed you about. -chris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups