Commit fe73bb7b authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[backend][assetmodel] Rename PLOTTERPARAMETERS to PLOTTERPARAMETER

This wasn't following the asset name properly
parent c1d654ad
......@@ -49,7 +49,7 @@ class AssetType(Enum):
EXPERIMENT,
LIBRARY,
PLOTTER,
PLOTTERPARAMETERS,
PLOTTERPARAMETER,
PROTOCOLTEMPLATE,
TOOLCHAIN,
) = range(10)
......@@ -69,7 +69,7 @@ class AssetType(Enum):
path = "libraries"
elif type_ == cls.PLOTTER:
path = "plotters"
elif type_ == cls.PLOTTERPARAMETERS:
elif type_ == cls.PLOTTERPARAMETER:
path = "plotterparameters"
elif type_ == cls.PROTOCOLTEMPLATE:
path = "protocoltemplates"
......@@ -93,7 +93,7 @@ class AssetType(Enum):
elif path == "plotters":
return cls.PLOTTER
elif path == "plotterparameters":
return cls.PLOTTERPARAMETERS
return cls.PLOTTERPARAMETER
elif path == "protocoltemplates":
return cls.PROTOCOLTEMPLATE
elif path == "toolchains":
......
......@@ -58,7 +58,7 @@ def asset_type_prefix_entry_map():
),
AssetType.LIBRARY: ("user/sum/1", LibraryEditor),
AssetType.PLOTTER: ("user/scatter/1", PlotterEditor),
AssetType.PLOTTERPARAMETERS: ("", PlotterParametersEditor),
AssetType.PLOTTERPARAMETER: ("", PlotterParametersEditor),
AssetType.TOOLCHAIN: ("user/double/1", ToolchainEditor),
}
......
......@@ -75,7 +75,7 @@ def widget_for_asset_type(asset_type):
editor = LibraryEditor()
elif asset_type == AssetType.PLOTTER:
editor = PlotterEditor()
elif asset_type == AssetType.PLOTTERPARAMETERS:
elif asset_type == AssetType.PLOTTERPARAMETER:
editor = PlotterParametersEditor()
elif asset_type == AssetType.PROTOCOLTEMPLATE:
editor = ProtocolTemplateEditor()
......
......@@ -33,7 +33,7 @@ from .editor import AbstractAssetEditor
class PlotterParametersEditor(AbstractAssetEditor):
def __init__(self, parent=None):
super(PlotterParametersEditor, self).__init__(
AssetType.PLOTTERPARAMETERS, parent
AssetType.PLOTTERPARAMETER, parent
)
self.setObjectName(self.__class__.__name__)
self.set_title(self.tr("Plotter Parameters"))
......
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