[sqlalchemy] Re: SA 0.4 weird behaviour

2007-11-13 Thread Michael Bayer
On Nov 13, 2007, at 2:51 AM, fw wrote: Hi, I am having a weird problem. I am dealing with some legacy database, so I subclass TypeDecorator to help clean things up a bit. This worked fine in 0.3 but I am now trying to use 0.4 and things break in the strangest of way. When I run the

[sqlalchemy] Re: SA 0.4 weird behaviour

2007-11-13 Thread jason kirtland
fw wrote: Hi, I am having a weird problem. I am dealing with some legacy database, so I subclass TypeDecorator to help clean things up a bit. This worked fine in 0.3 but I am now trying to use 0.4 and things break in the strangest of way. When I run the file below, Python complains

[sqlalchemy] Re: SA 0.4 weird behaviour

2007-11-13 Thread fw
Thanks for the answer. The trace is Traceback (most recent call last): File test.py, line 227, in ? StockItem.mapper[Primary]=mapper(StockItem, tblStock, properties={ File .../sqlalchemy/orm/__init__.py, line 518, in mapper return Mapper(class_, local_table, *args, **params) File

[sqlalchemy] Re: SA 0.4 weird behaviour

2007-11-13 Thread fw
Thanks for the answer It looks indeed like a log operation. When adding __repr__ no error message. Spot on. Cheers, François File test.py, line 230, in ? StockItem.mapper[Primary]=mapper(StockItem, tblStock, properties={ AttributeError: type object 'StockItem' has no