stupid me.
*mp = **mapper(cls, my_select)**
**...**
**# detects any relationship**
**...
mp.add_property(my_attr, relationship(othercls, ...))
***
sorry for thinking out loud (into the group) ...
best regards,
richard.
On 04/08/2014 04:31 PM, Richard Gerd Kuesters wrote:
hi all!
another question: i'm mapping some classes "dinamically", using the
mapper() function. i would like to create relationships, but not in
the properties kwarg of mapper, but after:
*mapper(cls, my_select)**
**...**
**# detects any relationship**
**...**
**setattr(cls, 'my_attr'**, relationship(othercls, ...))*
is that possible?
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]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
--
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/d/optout.