Re: [sqlalchemy] Apply function to object(s) returned by association_proxy

2010-01-17 Thread Michael Bayer
On Jan 17, 2010, at 9:20 AM, Adrian wrote: > Hi, > > is there an easy way to apply a function to the items returned by > association_proxy? Currently, I have a setup like this: A->B->C, both > one-to-many relations; A.C (association_proxy('B','C')) returns a list > of lists but I would like to a

[sqlalchemy] Apply function to object(s) returned by association_proxy

2010-01-17 Thread Adrian
Hi, is there an easy way to apply a function to the items returned by association_proxy? Currently, I have a setup like this: A->B->C, both one-to-many relations; A.C (association_proxy('B','C')) returns a list of lists but I would like to apply a function (list(chain.from_iterable (x))) that flat