On Oct 13, 2008, at 3:22 PM, g00fy wrote:

>
> I can't find anything related to this at: 
> http://www.sqlalchemy.org/docs/05/sqlalchemy_orm.html
> My code is :
>
> class Warehouse(object):
>    def __init__(self,id,construction_id,area_total,area_storage):
>        self.id = id
>        self.construction_id = construction_id
>        self.area_total = area_total
>        self.area_storage = area_storage
>
>    def __repr__(self):
>        return "%s" % self.id
>
>    class AreaProxy(object):
>        def __getattr__(self, key):
>            return getattr(Warehouse, "area_" + key)
>
>    area = AreaProxy()
>
> And this isn't working becouse:
> Warehouse.area.total
> returns
> .area_total
>
> Did i implement this wrong?

OK, theres some miscommunication here then.  What do you want  
Warehouse.area.total to indicate exactly ?



--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to