On Oct 30, 2009, at 10:15 PM, Jared Nuzzolillo wrote: > Thanks again Mike! > > Please accept my apologies for the double post, I had tried to send > it before registering. > > Are there any examples of using proxy_factory and proxy_bulk_set? I > couldn't find any (nor tests?), and have had trouble getting > everything wired up, at least without resorting to what feels > hackish. If no examples exists, I'll post a more detailed question > showing exactly where I am stuck.
mmm not that I know of, if you can find Jason Kirtland on irc since he wrote that stuff. Otherwise I'd be figuring it out the same way you are. > > Thanks, > Jared Nuzzolillo > > On Wed, Oct 28, 2009 at 12:32 PM, Michael Bayer <mike...@zzzcomputing.com > > wrote: > > [...] > I'm assuming Post.tags is an associationproxy. So dynamic_loader > isn't used here (that only applies to a relation()), you'd be > looking to build an associationproxy that produces a Query() when > called upon. So you really want to build an > associationproxy._AssociationCollection subclass that does what > you'd like, and specify it using proxy_factory and proxy_bulk_set on > the associationproxy. Because the proxied collection lives outside > of what the unit of work cares about, it doesn't need all the weird > stuff that dynamic_loader has to do in order to work with the ORM, > so should be fairly straightforward to create. > > > --~--~---------~--~----~------------~-------~--~----~ 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 sqlalchemy+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---