Refactored the dashboard in order to add new functionality and added some new functionality.
Note that all files were moved to a new directory. The diffs won't be 100% friendly because of this.
Extracted common handling for OAuth on both sides of the connection in order to add a new build status
data handler. This data handler will be used to report build status data. Don't look too closely at the
details of what data is transferred as this will change in the next patch. We will also extract data from
a different page in a slightly different way, but there won't be huge differences.
In particular, we won't look at the /one_box_per_builder page on the master but rather at the transposed
grid (/tgrid) on the build master since we also need the revision number. The regular expressions to
extract the data will be slightly more complex.
BUG=
TEST=
Review URL: https://webrtc-codereview.appspot.com/367023
git-svn-id: http://webrtc.googlecode.com/svn/trunk@1586 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/tools/quality_tracking/constants.py b/tools/quality_tracking/constants.py
new file mode 100644
index 0000000..a38c733
--- /dev/null
+++ b/tools/quality_tracking/constants.py
@@ -0,0 +1,38 @@
+#!/usr/bin/env python
+#-*- coding: utf-8 -*-
+# Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
+#
+# Use of this source code is governed by a BSD-style license
+# that can be found in the LICENSE file in the root of the source
+# tree. An additional intellectual property rights grant can be found
+# in the file PATENTS. All contributing project authors may
+# be found in the AUTHORS file in the root of the source tree.
+
+"""Contains tweakable constants for quality dashboard utility scripts."""
+
+__author__ = 'phoglund@webrtc.org (Patrik Höglund)'
+
+# This identifies our application using the information we got when we
+# registered the application on Google appengine.
+# TODO(phoglund): update to the right value when we have registered the app.
+DASHBOARD_SERVER = 'localhost:8080'
+DASHBOARD_SERVER_HTTP = 'http://' + DASHBOARD_SERVER
+CONSUMER_KEY = DASHBOARD_SERVER
+CONSUMER_SECRET_FILE = 'consumer.secret'
+ACCESS_TOKEN_FILE = 'access.token'
+
+# OAuth URL:s.
+REQUEST_TOKEN_URL = DASHBOARD_SERVER_HTTP + '/_ah/OAuthGetRequestToken'
+AUTHORIZE_TOKEN_URL = DASHBOARD_SERVER_HTTP + '/_ah/OAuthAuthorizeToken'
+ACCESS_TOKEN_URL = DASHBOARD_SERVER_HTTP + '/_ah/OAuthGetAccessToken'
+
+# The build master URL.
+BUILD_MASTER_SERVER = 'webrtc-cb-linux-master.cbf.corp.google.com:8010'
+BUILD_MASTER_LATEST_BUILD_URL = '/one_box_per_builder'
+
+# The build-bot user which runs build bot jobs.
+BUILD_BOT_USER = 'phoglund'
+
+# Dashboard data input URLs.
+ADD_COVERAGE_DATA_URL = '/add_coverage_data'
+ADD_BUILD_STATUS_DATA_URL = '/add_build_status_data'