def get_site_path(self):
        target = self
        npath = [self.name]
        while True:
            if target.parent is None:
                break
            else:
                npath.append(target.parent.name)
                target = target.parent
        return '.'.join(npath)
dataset/ETHPy150Open mozilla/inventory/core/site/models.py/Site.get_site_path/original