Obtain the full path of a component on Perspective


Today I'm working on a funtion to let a user send emails when caught an exception to inform de developers... so I'm locking on a way to obtain the complete path of the component that invoke the exception, but with "self.meta.name" only obtain the name like "btnAdd" but what I want is to obtain something like "root/ctrBasket/ctrFruit/btnAdd" in which ctrBasket and ctrFruit are containers.

I didn't see any function on self to obtain the complete path of the components, any ideas?

Components have a getParent() method. You can walk up using that until you get None, at which point you know you have the root container.