[sqlalchemy] Re: Overriding table columns with Python-property

2008-07-22 Thread Malthe Borch
Michael Bayer wrote: well, i can support this in 0.5 trunk. in rev 4965, If a descriptor is present on a class, or if the name is excluded via the include/ exclude lists, the attribute will not be instrumented via the inherited mapper or via the mapped Table. So your example works with

[sqlalchemy] Re: Overriding table columns with Python-property

2008-07-22 Thread Malthe Borch
Michael Bayer wrote: well, i can support this in 0.5 trunk. in rev 4965, If a descriptor is present on a class, or if the name is excluded via the include/ exclude lists, the attribute will not be instrumented via the inherited mapper or via the mapped Table. So your example works with

[sqlalchemy] Re: Overriding table columns with Python-property

2008-07-22 Thread Michael Bayer
this issue is not specific to the recent changes; this would happen even with the old behavior (since exclude_properties was meant to mean, I dont want SQLA to know about this column at all typically in a reflection scenario). its fixed in r4966. On Jul 22, 2008, at 7:27 AM, Malthe

[sqlalchemy] Re: Overriding table columns with Python-property

2008-07-20 Thread Michael Bayer
On Jul 19, 2008, at 7:39 AM, Malthe Borch wrote: I tried adapting your example, which admittedly works :-), to a scenario that better resembles mine, but now the property is overriden simply, even when I use ``exclude_properties``. Note that the setup is overly complex, but this should

[sqlalchemy] Re: Overriding table columns with Python-property

2008-07-20 Thread Malthe Borch
Michael Bayer wrote: well, i can support this in 0.5 trunk. in rev 4965, If a descriptor is present on a class, or if the name is excluded via the include/ exclude lists, the attribute will not be instrumented via the inherited mapper or via the mapped Table. So your example works with

[sqlalchemy] Re: Overriding table columns with Python-property

2008-07-20 Thread Michael Bayer
On Jul 19, 2008, at 7:39 AM, Malthe Borch wrote: I tried adapting your example, which admittedly works :-), to a scenario that better resembles mine, but now the property is overriden simply, even when I use ``exclude_properties``. Note that the setup is overly complex, but this should

[sqlalchemy] Re: Overriding table columns with Python-property

2008-07-19 Thread Malthe Borch
Michael Bayer wrote: works for me: I tried adapting your example, which admittedly works :-), to a scenario that better resembles mine, but now the property is overriden simply, even when I use ``exclude_properties``. Note that the setup is overly complex, but this should be seen in the

[sqlalchemy] Re: Overriding table columns with Python-property

2008-07-18 Thread Michael Bayer
works for me: from sqlalchemy import * from sqlalchemy.orm import * e = create_engine('sqlite://') m = MetaData(e) t= Table('t1', m, Column('id', Integer, primary_key=True), Column('col', String(50)), Column('data', String(50)), ) t.create() class Mapper(object):