diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-12-19 17:13:40 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2018-12-19 17:13:40 +0100 |
commit | aa3abebd804129f2eff361a1b4f21d0c04c61cfd (patch) | |
tree | e88a4a8e07f46be38fe8289c68eb19ac3f234d92 /python/gui/api.py | |
parent | 49620ea6940543a875e0499a1554b33ffb85fa85 (diff) | |
download | dabmod-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-x | python/gui/api.py | 9 |
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") |