[sqlalchemy] how are foreign relations stored ?

2013-05-16 Thread Jonathan Vanasco
I've been using a utility method 'columns_as_dict' to help store my data in a cache. It works well. A problem I've encountered... i need to access the related data that i've eagerloaded. My current function looks like this def columns_as_dict(self): as_dict = dict(

Re: [sqlalchemy] how are foreign relations stored ?

2013-05-16 Thread Michael Bayer
if you're on 0.8 this is all available via the various getters on mapper: http://docs.sqlalchemy.org/en/rel_0_8/orm/mapper_config.html#sqlalchemy.orm.mapper.Mapper.attrs On May 16, 2013, at 1:37 PM, Jonathan Vanasco jonat...@findmeon.com wrote: I've been using a utility method

Re: [sqlalchemy] how are foreign relations stored ?

2013-05-16 Thread Jonathan Vanasco
I am and that's awesome. Thank you! On Thursday, May 16, 2013 2:47:47 PM UTC-4, Michael Bayer wrote: if you're on 0.8 this is all available via the various getters on mapper: http://docs.sqlalchemy.org/en/rel_0_8/orm/mapper_config.html#sqlalchemy.orm.mapper.Mapper.attrs On May 16, 2013,