Commit 900b4f01 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[dataformat] Set asset_type and asset_folder class information

parent 713a0961
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment