[sqlalchemy] Re: similar to composite()

2008-10-13 Thread Michael Bayer
On Oct 13, 2008, at 11:14 AM, g00fy wrote: I have my table Warehouse collumns like: id, owner_id , area_total, area_office ... ,area_storage I would like to have acces to all areas by Warehouse.area.property: example: Warehouse.area.storage I did composite(), but now I can't filter

[sqlalchemy] Re: similar to composite()

2008-10-13 Thread az
see a thread composites started by me on 21.08.2008 - i have something named composer for such embedded structures but i have not yet moved further into how to make that one a Comparable in terms of query.filter(). u can try do it... On Monday 13 October 2008 18:14:42 g00fy wrote: I have my

[sqlalchemy] Re: similar to composite()

2008-10-13 Thread g00fy
How this Proxy object is going to work exacly? Will that generate extra Sql or what? I assume that I should just change __getattr__() to desired and return Warehouse.key ? or warehouse_table.c.key? On 13 Paź, 17:25, Michael Bayer [EMAIL PROTECTED] wrote: On Oct 13, 2008, at 11:14 AM, g00fy

[sqlalchemy] Re: similar to composite()

2008-10-13 Thread Michael Bayer
On Oct 13, 2008, at 2:50 PM, g00fy wrote: How this Proxy object is going to work exacly? Will that generate extra Sql or what? I assume that I should just change __getattr__() to desired and return Warehouse.key ? or warehouse_table.c.key? the proxy, which actually should read: class