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

[database] Set asset_type and asset_folder class information

parent 7e188892
Branches
Tags
1 merge request!46Improve asset information
......@@ -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")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment