aboutsummaryrefslogtreecommitdiff
path: root/app/urls.py
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-11-12 17:35:34 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-11-12 17:35:34 +0100
commitfa9c001a2b88a9c7ee43015528c4e938cb46c0db (patch)
treee1a10cd8173a06d124bd57e66d3412763e0010b2 /app/urls.py
parenta6d2a1d4df3c2544fa0425dc492b11fcca1c70ef (diff)
Add /lab URL handler.
Change-Id: I89a770993556b1c1795108e200a0e2bfb956c761
Diffstat (limited to 'app/urls.py')
-rw-r--r--app/urls.py43
1 files changed, 27 insertions, 16 deletions
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<sl>/)?(?P<id>.*)', JobHandler, name='job')
+_JOB_URL = url(
+ r'/job(?P<sl>/)?(?P<id>.*)', handlers.job.JobHandler, name='job'
+)
_DEFCONF_URL = url(
- r'/defconfig(?P<sl>/)?(?P<id>.*)', DefConfHandler, name='defconf'
+ r'/defconfig(?P<sl>/)?(?P<id>.*)',
+ handlers.defconf.DefConfHandler,
+ name='defconf'
)
_SUBSCRIPTION_URL = url(
r'/subscription(?P<sl>/)?(?P<id>.*)',
- SubscriptionHandler,
+ handlers.subscription.SubscriptionHandler,
name='subscription',
)
-_BOOT_URL = url(r'/boot(?P<sl>/)?(?P<id>.*)', BootHandler, name='boot')
+_BOOT_URL = url(
+ r'/boot(?P<sl>/)?(?P<id>.*)', handlers.boot.BootHandler, name='boot'
+)
_COUNT_URL = url(
- r'/count(?P<sl>/)?(?P<id>.*)', CountHandler, name='count'
+ r'/count(?P<sl>/)?(?P<id>.*)', handlers.count.CountHandler, name='count'
)
_TOKEN_URL = url(
- r'/token(?P<sl>/)?(?P<id>.*)', TokenHandler, name='token'
+ r'/token(?P<sl>/)?(?P<id>.*)', 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<collection>.*)/(?P<id>.*)",
- BisectHandler,
+ handlers.bisect.BisectHandler,
name="bisect"
)
+_LAB_URL = url(
+ r"/lab(?P<sl>/)?(?P<id>.*)", 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,
]