Define inverse property dynamically (closed)

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Define inverse property dynamically (closed)

William
This post was updated on .
Hi~

It is not convenient to define/use inverse property with Inverse constructor or inverse_property in dynamic case. Could we define a property such as 'INVERSE_property' or 'property_INV' just like 'INDERCT_property'? Then It is possible to use getattr(i, 'INVERSE_'+r).
Reply | Threaded
Open this post in threaded view
|

Re: Define inverse property dynamically

Jiba
Administrator
Hi,

I've just added the support for individual.INVERSE_property in the development version.

Enjoy :)
Jiba