Commit 0cfd3d93 authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[library] Set asset_type and asset_folder class information

parent 818c5e71
......@@ -65,6 +65,9 @@ class Storage(utils.CodeStorage):
"""
asset_type = "library"
asset_folder = "libraries"
def __init__(self, prefix, name, language=None):
if name.count("/") != 2:
......@@ -74,7 +77,9 @@ class Storage(utils.CodeStorage):
self.fullname = name
self.prefix = prefix
path = utils.hashed_or_simple(self.prefix, "libraries", name, suffix=".json")
path = utils.hashed_or_simple(
self.prefix, self.asset_folder, name, suffix=".json"
)
path = path[:-5]
super(Storage, self).__init__(path, language)
......
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