| Index: chrome/common/extensions/docs/server2/clark.py
|
| diff --git a/chrome/common/extensions/docs/server2/clark.py b/chrome/common/extensions/docs/server2/clark.py
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..2a45395f8e9a55384871fabd650202c6efb2d4ab
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/docs/server2/clark.py
|
| @@ -0,0 +1,33 @@
|
| +#!/usr/bin/env python
|
| +# Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +from google.appengine.ext import webapp
|
| +from google.appengine.ext.webapp.util import run_wsgi_app
|
| +from branch_utility import BranchUtility
|
| +
|
| +
|
| +class MainPage(webapp.RequestHandler):
|
| + def get(self):
|
| + b_util = BranchUtility()
|
| + self.response.out.write('dev: ' +
|
| + b_util.GetBranchNumberForChannelName('dev') + '<br/>')
|
| + self.response.out.write('beta: ' +
|
| + b_util.GetBranchNumberForChannelName('beta') + '<br/>')
|
| + self.response.out.write('stable: ' +
|
| + b_util.GetBranchNumberForChannelName('stable') + '<br/>')
|
| + self.response.out.write('trunk: ' +
|
| + b_util.GetBranchNumberForChannelName('trunk'))
|
| +
|
| +application = webapp.WSGIApplication([
|
| + ('/.*', MainPage),
|
| +], debug=False)
|
| +
|
| +
|
| +def main():
|
| + run_wsgi_app(application)
|
| +
|
| +
|
| +if __name__ == '__main__':
|
| + main()
|
|
|