def get_parent(self):
        if self.path == '/':
            return None
        return self.tree.get(posixpath.dirname(self.path))
Returns the parent item.
dataset/ETHPy150Open lektor/lektor/lektor/db.py/TreeItem.get_parent