3. Is there a nicer way to get a keyType for instance from its string ? In my example, I retrieved chainKey as the third element of the integer keys list returned by get_int_attributes(), this is not very satisfying, and I thought of resorting to a function such as :
def getChainKey( chain ):
for k in chain.get_int_attributes() :
if k.get_string() == 'chain' :
return k
return None
Still, I wonder if there is an IMP mechanism I am not aware of, that I should prefer instead.