[sqlalchemy] Re: Attribute inheritance problem - IRC comment

2009-07-30 Thread Tomasz Jezierski - Tefnet
Dnia 2009-07-29, Śr o godzinie 11:24 -0400, Michael Bayer pisze: Tefnet Developers wrote: [10:00] jezier stepz_: in for m in mapper.polymorphic_iterator(): you get random order i think While I haven't tested this, based on inspection it should only be random within one level of

[sqlalchemy] Re: Attribute inheritance problem - IRC comment

2009-07-30 Thread Tomasz Jezierski - Tefnet
Dnia 2009-07-29, Śr o godzinie 11:24 -0400, Michael Bayer pisze: Tefnet Developers wrote: [10:00] jezier stepz_: in for m in mapper.polymorphic_iterator(): you get random order i think While I haven't tested this, based on inspection it should only be random within one level of

[sqlalchemy] Re: Attribute inheritance problem.

2009-07-29 Thread Tefnet Developers
Dnia 2009-07-28, wto o godzinie 11:06 -0400, Michael Bayer pisze: A few things here. First is, I'm not observing the extension not getting inherited. Task().result = 3 raises the error, DeliveryTask().result = 3 does not, and the value is assigned to 3. This is with 0.5.5 as well as

[sqlalchemy] Re: Attribute inheritance problem - IRC comment

2009-07-29 Thread Tefnet Developers
A short discussion from #sqlalchemy at freenode: [09:48] filip hi, could somebody please run http://filip.eu.org/sqlawtf.py and tell me whether an exception is being raised? [09:49] filip because on my machines it is, and on zzzeek's it is not... [09:55] stepz_ filip: I looked at that a

[sqlalchemy] Re: Attribute inheritance problem.

2009-07-29 Thread Michael Bayer
Tefnet Developers wrote: Dnia 2009-07-28, wto o godzinie 11:06 -0400, Michael Bayer pisze: A few things here. First is, I'm not observing the extension not getting inherited. Task().result = 3 raises the error, DeliveryTask().result = 3 does not, and the value is assigned to 3. This is

[sqlalchemy] Re: Attribute inheritance problem - IRC comment

2009-07-29 Thread Michael Bayer
Tefnet Developers wrote: [10:00] jezier stepz_: in for m in mapper.polymorphic_iterator(): you get random order i think While I haven't tested this, based on inspection it should only be random within one level of hierarchy, which shouldn't cause this issue. e.g. D - B - A E - C -

[sqlalchemy] Re: Attribute inheritance problem.

2009-07-28 Thread Michael Bayer
Tefnet Developers wrote: sqlalchemy.orm.column_property(sqlalchemy.Column(sqlalchemy.types.Integer), extension = TefEx({0: 'Delivered', 1: 'Rejected', 2: 'Redirected', 3: 'Recipient dead'})) task = DeliveryTask() task.result = 3