-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Etienne Jodry
authored and
Etienne Jodry
committed
May 14, 2024
1 parent
38c6d57
commit 627528a
Showing
17 changed files
with
169 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
from .tag import TagController | ||
from .project import ProjectController | ||
from .file import FileController | ||
from .dataset import DatasetController | ||
|
||
|
||
|
||
|
||
CONTROLLERS = [TagController, FileController, DatasetController] | ||
CONTROLLERS = [TagController, FileController, ProjectController, DatasetController] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
from biodm.components.controllers import ResourceController | ||
|
||
|
||
class ProjectController(ResourceController): | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from .project import ProjectSchema | ||
from .tag import TagSchema | ||
from .dataset import DatasetSchema | ||
from .file import FileSchema | ||
from .file import FileSchema |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
from marshmallow import Schema, validate | ||
from marshmallow.fields import String, List, Nested, Integer, Bool | ||
|
||
from entities.tables import File | ||
from .dataset import DatasetSchema | ||
|
||
|
||
class FileSchema(Schema): | ||
class Meta: | ||
model = File | ||
|
||
id = Integer() | ||
filename = String(required=True) | ||
url = String(required=False) | ||
ready = Bool(required=False) | ||
id_dataset = Integer(required=True) | ||
version_dataset = Integer(required=True) | ||
dataset = Nested(DatasetSchema, required=True, load_only=True) | ||
dataset = Nested('DatasetSchema', required=True, load_only=True) |
Oops, something went wrong.