From fa9c001a2b88a9c7ee43015528c4e938cb46c0db Mon Sep 17 00:00:00 2001 From: Milo Casagrande Date: Wed, 12 Nov 2014 17:35:34 +0100 Subject: Add /lab URL handler. Change-Id: I89a770993556b1c1795108e200a0e2bfb956c761 --- app/urls.py | 43 +++++++++++++++++++++++++++---------------- 1 file changed, 27 insertions(+), 16 deletions(-) (limited to 'app/urls.py') diff --git a/app/urls.py b/app/urls.py index 4f2462b..1d598b4 100644 --- a/app/urls.py +++ b/app/urls.py @@ -17,40 +17,50 @@ 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 +import handlers.batch +import handlers.bisect +import handlers.boot +import handlers.count +import handlers.defconf +import handlers.job +import handlers.lab +import handlers.subscription +import handlers.token -_JOB_URL = url(r'/job(?P/)?(?P.*)', JobHandler, name='job') +_JOB_URL = url( + r'/job(?P/)?(?P.*)', handlers.job.JobHandler, name='job' +) _DEFCONF_URL = url( - r'/defconfig(?P/)?(?P.*)', DefConfHandler, name='defconf' + r'/defconfig(?P/)?(?P.*)', + handlers.defconf.DefConfHandler, + name='defconf' ) _SUBSCRIPTION_URL = url( r'/subscription(?P/)?(?P.*)', - SubscriptionHandler, + handlers.subscription.SubscriptionHandler, name='subscription', ) -_BOOT_URL = url(r'/boot(?P/)?(?P.*)', BootHandler, name='boot') +_BOOT_URL = url( + r'/boot(?P/)?(?P.*)', handlers.boot.BootHandler, name='boot' +) _COUNT_URL = url( - r'/count(?P/)?(?P.*)', CountHandler, name='count' + r'/count(?P/)?(?P.*)', handlers.count.CountHandler, name='count' ) _TOKEN_URL = url( - r'/token(?P/)?(?P.*)', TokenHandler, name='token' + r'/token(?P/)?(?P.*)', handlers.token.TokenHandler, name='token' ) _BATCH_URL = url( - r'/batch', BatchHandler, name='batch' + r'/batch', handlers.batch.BatchHandler, name='batch' ) _BISECT_URL = url( r"/bisect/(?P.*)/(?P.*)", - BisectHandler, + handlers.bisect.BisectHandler, name="bisect" ) +_LAB_URL = url( + r"/lab(?P/)?(?P.*)", handlers.lab.LabHandler, name="lab" +) APP_URLS = [ _BATCH_URL, @@ -59,6 +69,7 @@ APP_URLS = [ _COUNT_URL, _DEFCONF_URL, _JOB_URL, + _LAB_URL, _SUBSCRIPTION_URL, _TOKEN_URL, ] -- cgit v1.2.3