OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 The Chromium 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 from __future__ import with_statement | 5 from __future__ import with_statement |
6 | 6 |
7 import datetime | 7 import datetime |
8 import json | 8 import json |
9 import logging | 9 import logging |
10 import os | 10 import os |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 "https://chromium-build.appspot.com/p/" | 581 "https://chromium-build.appspot.com/p/" |
582 "chromium-status/current", content) | 582 "chromium-status/current", content) |
583 | 583 |
584 # TODO(hinoka): Enable these when the app is done. | 584 # TODO(hinoka): Enable these when the app is done. |
585 # Convert direct build.chromium.org links to local links. | 585 # Convert direct build.chromium.org links to local links. |
586 # content = re.sub("http://build.chromium.org/p/", "/buildbot/", content) | 586 # content = re.sub("http://build.chromium.org/p/", "/buildbot/", content) |
587 # content = re.sub(r"/buildbot/(.*)/buildstatus\?builder=(.*)&number=(\d+)", | 587 # content = re.sub(r"/buildbot/(.*)/buildstatus\?builder=(.*)&number=(\d+)", |
588 # r"/buildbot/\1/builders/\2/builds/\3", content) | 588 # r"/buildbot/\1/builders/\2/builds/\3", content) |
589 | 589 |
590 # Disable the personalized for box for now. | 590 # Disable the personalized for box for now. |
591 content = re.sub(r"<input id='namebox", r"<!-- <input id='namebox", content) | 591 content = re.sub(r"<input id='namebox'[^>]+>", '', content) |
592 content = re.sub(r"reload_page\(\)'/>", r"reload_page()'/> -->", content) | 592 content = re.sub(r"<input.*onclick='reload_page\(\)'/>", '', content) |
593 | 593 |
594 # Replace lkgrPath with a URL to chromium-build. | 594 # Replace lkgrPath with a URL to chromium-build. |
595 content = re.sub( | 595 content = re.sub( |
596 "var lkgrPath = c.status_lkgr", | 596 "var lkgrPath = c.status_lkgr", |
597 "var lkgrPath = '/p/chromium.lkgr'", | 597 "var lkgrPath = '/p/chromium.lkgr'", |
598 content) | 598 content) |
599 content = string.replace(content, | 599 content = string.replace(content, |
600 "'/json/builders/Linux%20x64/builds/-1?as_text=1';", | 600 "'/json/builders/Linux%20x64/builds/-1?as_text=1';", |
601 "'/json/builders/Linux%20x64/builds/-1/as_text=1.json';") | 601 "'/json/builders/Linux%20x64/builds/-1/as_text=1.json';") |
602 | 602 |
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1210 'builds/-1?as_text=1'), | 1210 'builds/-1?as_text=1'), |
1211 'localpath': | 1211 'localpath': |
1212 'chromium.lkgr/json/builders/Linux%20x64/builds/-1/as_text=1.json', | 1212 'chromium.lkgr/json/builders/Linux%20x64/builds/-1/as_text=1.json', |
1213 'maxage': 2*60, # 2 mins | 1213 'maxage': 2*60, # 2 mins |
1214 }, | 1214 }, |
1215 | 1215 |
1216 # # Trigger background process update. | 1216 # # Trigger background process update. |
1217 # { | 1217 # { |
1218 # 'remoteurl': 'http://chromium-build.appspot.com/backend/update' | 1218 # 'remoteurl': 'http://chromium-build.appspot.com/backend/update' |
1219 ] | 1219 ] |
OLD | NEW |