Indirect property reference

Awesome, I had forgotten about these functions (setattr as well to set an attribute). Very cool and it works, just need to make sure as you said to use at least the path to session.custom as the attribute.

I used:

setattr(self.session.custom, self.view.params.sessionCustomPropPath, 'HELLO??')
# where
self.view.params.sessionCustomPropPath = 'path.to.custom.prop'

Thanks @bkarabinchak.psi !

1 Like