Hi,

> You are missing a compile call before you can iterate properties.
> try adding:

Ah, that is indeed the problem. With that in place, iterate_properties does
very nearly what I need.

The only problem is that I need to get the name of the relation as well. For
now, the following works:

[(a,b) for a,b in getattr(obj.mapper, '_Mapper__props').items() if
isinstance(b, sqlalchemy.orm.properties.PropertyLoader)]

There's probably a better way, but my app is now working.

Paul

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