--- a/viewer.py Wed Jul 27 18:39:44 2016 +0800
+++ b/viewer.py Wed Jul 27 18:43:12 2016 +0800
from tornado.ioloop import IOLoop
from tornado.options import define, options
-from tornado.web import Application, URLSpec
+from tornado.web import Application
from candolint import uimodules
from candolint.handlers import IndexHandler, ProjectHandler, CheckHandler, StatusHandler, ErrorHandler
project_re = r'/([.a-z0-9_-]+)/([^/]+)/([^/]+)'
- URLSpec(r'/', IndexHandler),
- URLSpec(project_re, ProjectHandler),
- URLSpec(project_re + r'/([\d]+|latest)(?:/(raw))?', CheckHandler),
- URLSpec(project_re + r'/status\.svg', StatusHandler),
- URLSpec(r'.*', ErrorHandler, {'status_code': 404})
+ (project_re, ProjectHandler),
+ (project_re + r'/([\d]+|latest)(?:/(raw))?', CheckHandler),
+ (project_re + r'/status\.svg', StatusHandler),
+ (r'.*', ErrorHandler, {'status_code': 404})
static_path=rel('static'),