what's the best way to check and retrieve the polymorphic identity of a mapped class?

I'm using:

*pi = cls.__mapper_args__.get('polymorphic_identity')**
**if pi:**
**    # rest of the code**
**    ...*

I'm just wondering if there's a shortcut or a better way to achieve this, since I'm not fond of using *__variables__* :)


best regards,
richard.

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to