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/orm/mapper.py", line 152, in __init__ self._compile_tables() File ".../sqlalchemy/orm/mapper.py", line 464, in _compile_tables self.__log("Identified primary key columns: " + str(primary_key)) File "sqlalchemy/util.py", line 481, in __repr__ return '%s(%r)' % (self.__class__.__name__, self._list) File "sqlalchemy/schema.py", line 496, in __repr__ return "Column(%s)" % ', '.join( File "sqlalchemy/types.py", line 136, in __repr__ return "%s(%s)" % (self.__class__.__name__, ",".join(["%s=%s" % (k, getattr(self, k)) for k in inspect.getargspec(self.__init__)[0] [1:]])) File "sqlalchemy/types.py", line 208, in __getattr__ return getattr(self.impl, key) AttributeError: 'String' object has no attribute 'padding' Cheers, François On 13 nov, 22:17, Michael Bayer <[EMAIL PROTECTED]> wrote: > 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 file below, Python complains about > > > AttributeError: 'String' object has no attribute 'padding' > > a full stack trace would be needed to pinpoint who is calling for that > attribute. --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---