

@access.public
@loadmodel(model='item', level=AccessType.READ)
@describeRoute(Description("Get the path to the root of the item's hierarchy.").param('id', 'The ID of the item.', paramType='path').errorResponse('ID was invalid.').errorResponse('Read access was denied for the item.', 403))
def rootpath(self, item, params):
    return self.model('item').parentsToRoot(item, item.getCurrentUser())

dataset/ETHPy150Open girder/girder/girder/api/v1/item.py Item.rootpath/VarMisuse@77/147 `self`->`item`