Commit 457a1a1d authored by Samuel GAIST's avatar Samuel GAIST Committed by Flavio TARSETTI

[plotterparameter] Set asset_type and asset_folder class information

parent 796d9a0e
...@@ -59,6 +59,9 @@ class Storage(utils.Storage): ...@@ -59,6 +59,9 @@ class Storage(utils.Storage):
``<user>/<plotterparameter-name>/<version>`` ``<user>/<plotterparameter-name>/<version>``
""" """
asset_type = "plotterparameter"
asset_folder = "plotterparameters"
def __init__(self, prefix, name): def __init__(self, prefix, name):
if name.count("/") != 2: if name.count("/") != 2:
...@@ -69,7 +72,7 @@ class Storage(utils.Storage): ...@@ -69,7 +72,7 @@ class Storage(utils.Storage):
self.prefix = prefix self.prefix = prefix
path = utils.hashed_or_simple( path = utils.hashed_or_simple(
self.prefix, "plotterparameters", name, suffix=".json" self.prefix, self.asset_folder, name, suffix=".json"
) )
path = path[:-5] path = path[:-5]
......
Markdown is supported
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