Re: [sqlalchemy] tracking back from logged sql back to the python that caused it

2010-01-17 Thread Michael Bayer
On Jan 17, 2010, at 12:54 PM, Chris Withers wrote: > Michael Bayer wrote: >>> Michael Bayer wrote: it is quite simple to implement yourself, use a ConnectionProxy. >>> Ah, ok, didn't know about them :-) >>> Out of interest, is echo=True implemented as a ConnectionProxy? >> its not. CP i

Re: [sqlalchemy] Oracle, ownership and unrecognized type warnings

2010-01-17 Thread Michael Bayer
On Jan 6, 2010, at 2:22 PM, Michael Bayer wrote: > > its true that there's no built in functionality to reflect views. Correction. The 0.6 release, currently in trunk, has the capacity to reflect views fully in the same way as tables. Although constraints such as primary and foreign keys

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

2010-01-17 Thread Adrian
The read-only version was all I needed, thanks. On Jan 17, 3:25 pm, Michael Bayer wrote: > 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

Re: [sqlalchemy] tracking back from logged sql back to the python that caused it

2010-01-17 Thread Chris Withers
Michael Bayer wrote: Michael Bayer wrote: it is quite simple to implement yourself, use a ConnectionProxy. Ah, ok, didn't know about them :-) Out of interest, is echo=True implemented as a ConnectionProxy? its not. CP is a little heavyhanded for just the built-in SQL logging. How/where

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

Re: [Fwd: Re: [sqlalchemy] Book]

2010-01-17 Thread werner
Mark, Mark Ramm wrote: On Sat, Jan 16, 2010 at 11:29 AM, werner wrote: Seeing that Mark Ramm is co-author of this book, will it cover TurboGears in any why when it comes out? It has been massively postponed, but it's not altogether stopped. I've been working some the last two weeks t