OLD | NEW |
1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 # Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import autoupdate | 5 import autoupdate |
6 import buildutil | 6 import buildutil |
7 import optparse | 7 import optparse |
8 import os | 8 import os |
9 import SimpleHTTPServer | |
10 import sys | 9 import sys |
11 import web | 10 import web |
12 | 11 |
13 global updater | 12 global updater |
14 updater = None | 13 updater = None |
15 | 14 |
16 global buildbot | 15 global buildbot |
17 buildbot = None | 16 buildbot = None |
18 | 17 |
19 class index: | 18 class index: |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 sys.exit(0) | 95 sys.exit(0) |
97 urls = ('/', 'index', | 96 urls = ('/', 'index', |
98 '/update', 'update', | 97 '/update', 'update', |
99 '/update/(.+)', 'update', | 98 '/update/(.+)', 'update', |
100 '/webbuild', 'webbuild', | 99 '/webbuild', 'webbuild', |
101 '/build', 'build') | 100 '/build', 'build') |
102 | 101 |
103 app = web.application(urls, globals(), autoreload=True) | 102 app = web.application(urls, globals(), autoreload=True) |
104 render = web.template.render('templates/') | 103 render = web.template.render('templates/') |
105 app.run() | 104 app.run() |
OLD | NEW |