Commit 71d8ad07 authored by Samuel GAIST's avatar Samuel GAIST

[database] Set asset_type and asset_folder class information

parent 7e188892
......@@ -75,6 +75,9 @@ class Storage(utils.CodeStorage):
"""
asset_type = "database"
asset_folder = "databases"
def __init__(self, prefix, name):
if name.count("/") != 1:
......@@ -84,7 +87,7 @@ class Storage(utils.CodeStorage):
self.fullname = name
self.prefix = prefix
path = os.path.join(self.prefix, "databases", name + ".json")
path = os.path.join(self.prefix, self.asset_folder, name + ".json")
path = path[:-5]
# views are coded in Python
super(Storage, self).__init__(path, "python")
......
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