aboutsummaryrefslogtreecommitdiff
path: root/app/urls.py
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2015-01-14 12:20:14 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2015-01-14 12:20:14 +0100
commitb2d2bc3e57572df21cc0a11b1ad01c2dd76529f9 (patch)
treebae7bf2eb66cc316236c65404937a5e4457a0004 /app/urls.py
parent89d1aa9324b76b7b304627930fd434fc1305d02f (diff)
Fix import style.
Change-Id: Ib45bb8fa555e51d71b5eeb8fec9ad328cb19748d
Diffstat (limited to 'app/urls.py')
-rw-r--r--app/urls.py30
1 files changed, 17 insertions, 13 deletions
diff --git a/app/urls.py b/app/urls.py
index b3fd9b5..3d80c1e 100644
--- a/app/urls.py
+++ b/app/urls.py
@@ -13,7 +13,7 @@
"""Define URLs and handlers to server them."""
-from tornado.web import url
+import tornado.web
import handlers.batch
import handlers.bisect
@@ -29,48 +29,52 @@ import handlers.token
import handlers.version
-_JOB_URL = url(
+_JOB_URL = tornado.web.url(
r'/job[s]?(?P<sl>/)?(?P<id>.*)', handlers.job.JobHandler, name='job'
)
-_DEFCONF_URL = url(
+_DEFCONF_URL = tornado.web.url(
r'/defconfig[s]?(?P<sl>/)?(?P<id>.*)',
handlers.defconf.DefConfHandler,
name='defconf'
)
-_SUBSCRIPTION_URL = url(
+_SUBSCRIPTION_URL = tornado.web.url(
r'/subscription[s]?(?P<sl>/)?(?P<id>.*)',
handlers.subscription.SubscriptionHandler,
name='subscription',
)
-_BOOT_URL = url(
+_BOOT_URL = tornado.web.url(
r'/boot[s]?(?P<sl>/)?(?P<id>.*)', handlers.boot.BootHandler, name='boot'
)
-_COUNT_URL = url(
+_COUNT_URL = tornado.web.url(
r'/count[s]?(?P<sl>/)?(?P<id>.*)', handlers.count.CountHandler, name='count'
)
-_TOKEN_URL = url(
+_TOKEN_URL = tornado.web.url(
r'/token[s]?(?P<sl>/)?(?P<id>.*)', handlers.token.TokenHandler, name='token'
)
-_BATCH_URL = url(
+_BATCH_URL = tornado.web.url(
r'/batch', handlers.batch.BatchHandler, name='batch'
)
-_BISECT_URL = url(
+_BISECT_URL = tornado.web.url(
r"/bisect[s]?/(?P<collection>.*)/(?P<id>.*)",
handlers.bisect.BisectHandler,
name="bisect"
)
-_LAB_URL = url(
+_LAB_URL = tornado.web.url(
r"/lab[s]?(?P<sl>/)?(?P<id>.*)", handlers.lab.LabHandler, name="lab"
)
-_VERSION_URL = url(
+_VERSION_URL = tornado.web.url(
r"/version", handlers.version.VersionHandler, name="version"
)
-_REPORT_URL = url(
+_REPORT_URL = tornado.web.url(
r"/report[s]?(?P<sl>/)?(?P<id>.*)",
handlers.report.ReportHandler,
name="response"
)
-_SEND_URL = url(r"/send(?P<sl>/)?", handlers.send.SendHandler, name="send")
+_SEND_URL = tornado.web.url(
+ r"/send(?P<sl>/)?",
+ handlers.send.SendHandler,
+ name="send"
+)
APP_URLS = [
_BATCH_URL,