diff options
Diffstat (limited to 'silx/gui/hdf5/Hdf5Node.py')
-rw-r--r-- | silx/gui/hdf5/Hdf5Node.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/silx/gui/hdf5/Hdf5Node.py b/silx/gui/hdf5/Hdf5Node.py index 0fcb407..be16535 100644 --- a/silx/gui/hdf5/Hdf5Node.py +++ b/silx/gui/hdf5/Hdf5Node.py @@ -25,7 +25,7 @@ __authors__ = ["V. Valls"] __license__ = "MIT" -__date__ = "16/06/2017" +__date__ = "24/07/2018" import weakref @@ -52,6 +52,13 @@ class Hdf5Node(object): self.__child = [] self._populateChild(populateAll=True) + def _getCanonicalName(self): + parent = self.parent + if parent is None: + return "root" + else: + return "%s/?" % (parent._getCanonicalName()) + @property def parent(self): """Parent of the node, or None if the node is a root |