Fixed argument parsing in PreferredLocationGUIView
This commit is contained in:
parent
4ee1919252
commit
355b3cd8f2
1 changed files with 2 additions and 2 deletions
|
|
@ -6,6 +6,7 @@ from flask import abort
|
||||||
from labthings import fields, find_component
|
from labthings import fields, find_component
|
||||||
from labthings.extensions import BaseExtension
|
from labthings.extensions import BaseExtension
|
||||||
from labthings.views import PropertyView, View
|
from labthings.views import PropertyView, View
|
||||||
|
from labthings.marshalling import use_args
|
||||||
|
|
||||||
from openflexure_microscope.api.utilities.gui import build_gui
|
from openflexure_microscope.api.utilities.gui import build_gui
|
||||||
from openflexure_microscope.captures.capture_manager import BASE_CAPTURE_PATH
|
from openflexure_microscope.captures.capture_manager import BASE_CAPTURE_PATH
|
||||||
|
|
@ -208,8 +209,7 @@ class PreferredLocationView(PropertyView):
|
||||||
|
|
||||||
|
|
||||||
class PreferredLocationGUIView(View):
|
class PreferredLocationGUIView(View):
|
||||||
args = {"new_path_title": fields.String(required=True)}
|
@use_args({"new_path_title": fields.String(required=True)})
|
||||||
|
|
||||||
def post(self, args):
|
def post(self, args):
|
||||||
new_path_title = args.get("new_path_title")
|
new_path_title = args.get("new_path_title")
|
||||||
logging.debug(new_path_title)
|
logging.debug(new_path_title)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue