def get(self, name, default=None):
        """
            Get a Python-attribute of this item instance, falls back
            to the same attribute in the parent item if not set in
            this instance, used to inherit attributes to components

            @param name: the attribute name
        """

        if name in self.__dict__:
            value = self.__dict__[name]
        else:
            value = None
        if value is not None:
            return value
        if name[:2] == "__":
            raise AttributeError
        parent = self.parent
        if parent is not None:
            return parent.get(name)
        return default

    # -------------------------------------------------------------------------
dataset/ETHPy150Open sahana/eden/modules/s3/s3navigation.py/S3NavigationItem.get/original