Hi,

I'm trying to get relation type from the mapper, but having problems
detecting 'one to one' relation.

Pseudo code:
for p in mapper.iterate_properties:
    if isinstance(p, RelationProperty):
        ...

p.uselist is False, p.backref is available, but does not have any
information on it's type (should it use list or not).
p.direction is set to 'MANYTOONE'.

How it can be accomplished?

Thanks,
Serge.

--

You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected].
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