[sqlalchemy] return type of relationship

2012-03-29 Thread lars van gemerden
I am generating xml from SAclass objects and need to get the return type (referred SA class) of an relationship attribute (even if the returned value is None). The type will be used as tagname during XML generation. Can anyone tell me how to get this type? Cheers, Lars -- You received this

Re: [sqlalchemy] return type of relationship

2012-03-29 Thread Michael Bayer
we're working on a more documented API for getting info like this but at the moment it would be: MyClass.someattribute.property.mapper.class_ On Mar 29, 2012, at 7:16 PM, lars van gemerden wrote: I am generating xml from SAclass objects and need to get the return type (referred SA class)