Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
beat
beat.editor
Commits
26e8bb21
Commit
26e8bb21
authored
Apr 18, 2019
by
Samuel GAIST
Browse files
[backend][assetmodel] Add ProtocolTemplate to AssetType
parent
a1093cbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
beat/editor/backend/assetmodel.py
View file @
26e8bb21
...
...
@@ -50,8 +50,9 @@ class AssetType(Enum):
LIBRARY
,
PLOTTER
,
PLOTTERPARAMETERS
,
PROTOCOLTEMPLATE
,
TOOLCHAIN
,
)
=
range
(
9
)
)
=
range
(
10
)
@
classmethod
def
path
(
cls
,
type_
):
...
...
@@ -70,6 +71,8 @@ class AssetType(Enum):
path
=
"plotters"
elif
type_
==
cls
.
PLOTTERPARAMETERS
:
path
=
"plotterparameters"
elif
type_
==
cls
.
PROTOCOLTEMPLATE
:
path
=
"protocoltemplates"
elif
type_
==
cls
.
TOOLCHAIN
:
path
=
"toolchains"
...
...
@@ -91,6 +94,8 @@ class AssetType(Enum):
return
cls
.
PLOTTER
elif
path
==
"plotterparameters"
:
return
cls
.
PLOTTERPARAMETERS
elif
path
==
"protocoltemplates"
:
return
cls
.
PROTOCOLTEMPLATE
elif
path
==
"toolchains"
:
return
cls
.
TOOLCHAIN
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment