aboutsummaryrefslogtreecommitdiffstats
path: root/python/gui/api.py
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-19 17:13:40 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-19 17:13:40 +0100
commitaa3abebd804129f2eff361a1b4f21d0c04c61cfd (patch)
treee88a4a8e07f46be38fe8289c68eb19ac3f234d92 /python/gui/api.py
parent49620ea6940543a875e0499a1554b33ffb85fa85 (diff)
downloaddabmod-aa3abebd804129f2eff361a1b4f21d0c04c61cfd.tar.gz
dabmod-aa3abebd804129f2eff361a1b4f21d0c04c61cfd.tar.bz2
dabmod-aa3abebd804129f2eff361a1b4f21d0c04c61cfd.zip
GUI: Add adapt step to DPD
Diffstat (limited to 'python/gui/api.py')
-rwxr-xr-xpython/gui/api.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/python/gui/api.py b/python/gui/api.py
index bff224e..42c89c9 100755
--- a/python/gui/api.py
+++ b/python/gui/api.py
@@ -107,6 +107,15 @@ class API:
@cherrypy.expose
@cherrypy.tools.json_out()
+ def dpd_adapt(self, **kwargs):
+ if cherrypy.request.method == 'POST':
+ return self._wrap_dpd("adapt")
+ else:
+ cherrypy.response.status = 400
+ return send_error("POST only")
+
+ @cherrypy.expose
+ @cherrypy.tools.json_out()
def dpd_reset(self, **kwargs):
if cherrypy.request.method == 'POST':
return self._wrap_dpd("reset")