[sqlalchemy] double entries w/ logger config file (echo was set to False, now True after logging configured)

2010-05-09 Thread hal_robertson
Hi there I have an application that uses the Python logging facility. The logging system is configured through a config file I would like to be able to adjust sqlalchemy logging through the config file However, it seems when I configure the logging system it turns sqlalchemy echo to True on my

[sqlalchemy] Re: Possible to define composite mapping separate from underlying class implementation?

2009-08-24 Thread hal_robertson
,composite_table_C.c.z2)}) On Aug 24, 11:32 am, Michael Bayer mike...@zzzcomputing.com wrote: hal_robertson wrote: AttributeError: 'Z' object has no attribute '__composite_values__' using sqlalchemy.orm.composite to map instances of Z to composite tables requires that Z define __init__

[sqlalchemy] Possible to define composite mapping separate from underlying class implementation?

2009-08-23 Thread hal_robertson
Hello I am working with a legacy database and application design. I'm running into trouble mapping composite objects, as there is a common class that is persisted in different manners across many composite tables. I'm hoping to illustrate this problem with some Python code (below). I respect