Ejemplo n.º 1
0
    async def revisions(self, path, **kwargs):
        """Get past versions of the request file. Orders versions based on
        `_get_all_data()`

        :param str path: The path to a key
        :rtype list:
        """

        metadata = await self._get_data()
        return [
            DataverseRevision(item.extra['datasetVersion'])
            for item in metadata if item.extra['fileId'] == path.identifier
        ]
Ejemplo n.º 2
0
def revision_metadata_object():
    return DataverseRevision('Test Dataset Verision')