Skip to content
Snippets Groups Projects
Commit 900b4f01 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[dataformat] Set asset_type and asset_folder class information

parent 713a0961
No related branches found
No related tags found
1 merge request!46Improve asset information
......@@ -68,6 +68,9 @@ class Storage(utils.Storage):
"""
asset_type = "dataformat"
asset_folder = "dataformats"
def __init__(self, prefix, name):
if name.count("/") != 2:
......@@ -77,7 +80,9 @@ class Storage(utils.Storage):
self.fullname = name
self.prefix = prefix
path = utils.hashed_or_simple(self.prefix, "dataformats", name, suffix=".json")
path = utils.hashed_or_simple(
self.prefix, self.asset_folder, name, suffix=".json"
)
path = path[:-5]
super(Storage, self).__init__(path)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment