aboutsummaryrefslogtreecommitdiff
path: root/app/handlers/defconf.py
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-04-23 12:01:43 +0200
committerMilo Casagrande <milo.casagrande@linaro.org>2014-04-23 12:01:43 +0200
commit91810f2e2c9b082b30e5539968134fe61b518898 (patch)
tree6773a41f3468f14166d4fedf633c750e4106b6b6 /app/handlers/defconf.py
parent8bd32a8e3766eee17f1ec9bce48d3be1f1b4a179 (diff)
Fix and clean-up handlers.
Diffstat (limited to 'app/handlers/defconf.py')
-rw-r--r--app/handlers/defconf.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/handlers/defconf.py b/app/handlers/defconf.py
index de435c5..912d618 100644
--- a/app/handlers/defconf.py
+++ b/app/handlers/defconf.py
@@ -35,6 +35,13 @@ class DefConfHandler(BaseHandler):
def collection(self):
return self.db[DEFCONFIG_COLLECTION]
+ def _valid_keys(self, method):
+ valid_keys = {
+ 'GET': ['job', 'kernel', 'status'],
+ }
+
+ return valid_keys.get(method, None)
+
@asynchronous
def post(self, *args, **kwargs):
self.write_error(status_code=501)