[sqlalchemy] Re: Decouple association proxy?

2008-12-19 Thread arn vollebregt
> From: sqlalchemy@googlegroups.com [mailto:sqlalch...@googlegroups.com] > On Behalf Of Michael Bayer > > On Dec 19, 2008, at 2:11 PM, Arn Vollebregt wrote: > > > I am wondering if there is a way to completely decouple the > > association proxy declaration from my Python classes, and contain > >

[sqlalchemy] Re: Decouple association proxy?

2008-12-19 Thread Michael Bayer
On Dec 19, 2008, at 2:11 PM, Arn Vollebregt wrote: > > Hi, > > I am wondering if there is a way to completely decouple the > association proxy declaration from my Python classes, and contain this > to a database class? My goal is not to 'burden' developers looking at > the main part of my code w

[sqlalchemy] Re: Decouple association proxy?

2008-12-19 Thread az
> class MyObject(object): > myObjects = association_proxy('myPropertyProxy', 'myProperty', > creator=createAssociationObject) u mean, this one line there is 'burden' ? put all that in separate function in another file, and just import and call it... how about all the other table, mapper, etc