예제 #1
0
파일: catalog.py 프로젝트: PMR2/pmr2.app
def pmr2_workspace_storage_roots(self):
    """
    Index the roots of all the underlying storage.
    """

    try:
        storage = IStorage(self)
        return storage.roots()
    except NotImplementedError:
        return []
    except Exception:
        logger.exception('failed to derive roots for storage of %s', self)
        return []