From 63713dd9355f8da1e2c39031bde54f67d9bfd10c Mon Sep 17 00:00:00 2001 From: Milo Casagrande Date: Fri, 24 Oct 2014 19:00:38 +0200 Subject: bisect: Implement bisect handler. * Implement a new bisect handler that will perform bisect operation on the collections. At the moment the only supported collection is 'boot'. * Add celery task to execute the elaboration. * Add tests for the handler. * Add necessary variables. Change-Id: Iacaac5ec3c4c8aaa80ff87064564ac22ffc7e9f3 --- app/urls.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'app/urls.py') diff --git a/app/urls.py b/app/urls.py index b737c70..f12d927 100644 --- a/app/urls.py +++ b/app/urls.py @@ -17,13 +17,14 @@ from tornado.web import url +from handlers.bisect import BisectHandler +from handlers.batch import BatchHandler from handlers.boot import BootHandler from handlers.count import CountHandler from handlers.defconf import DefConfHandler from handlers.job import JobHandler from handlers.subscription import SubscriptionHandler from handlers.token import TokenHandler -from handlers.batch import BatchHandler _JOB_URL = url(r'/api/job(?P/)?(?P.*)', JobHandler, name='job') @@ -45,13 +46,19 @@ _TOKEN_URL = url( _BATCH_URL = url( r'/api/batch', BatchHandler, name='batch' ) +_BISECT_URL = url( + r"/api/bisect/(?P.*)/(?P.*)", + BisectHandler, + name="bisect" +) APP_URLS = [ + _BATCH_URL, + _BISECT_URL, _BOOT_URL, _COUNT_URL, _DEFCONF_URL, _JOB_URL, _SUBSCRIPTION_URL, _TOKEN_URL, - _BATCH_URL, ] -- cgit v1.2.3