OLD | NEW |
(Empty) | |
| 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. |
| 5 |
| 6 from google.appengine.ext import webapp |
| 7 from google.appengine.ext.webapp.util import run_wsgi_app |
| 8 from branch_utility import BranchUtility |
| 9 |
| 10 |
| 11 class MainPage(webapp.RequestHandler): |
| 12 def get(self): |
| 13 b_util = BranchUtility() |
| 14 self.response.out.write('dev: ' + |
| 15 b_util.GetBranchNumberForChannelName('dev') + '<br/>') |
| 16 self.response.out.write('beta: ' + |
| 17 b_util.GetBranchNumberForChannelName('beta') + '<br/>') |
| 18 self.response.out.write('stable: ' + |
| 19 b_util.GetBranchNumberForChannelName('stable') + '<br/>') |
| 20 self.response.out.write('trunk: ' + |
| 21 b_util.GetBranchNumberForChannelName('trunk')) |
| 22 |
| 23 application = webapp.WSGIApplication([ |
| 24 ('/.*', MainPage), |
| 25 ], debug=False) |
| 26 |
| 27 |
| 28 def main(): |
| 29 run_wsgi_app(application) |
| 30 |
| 31 |
| 32 if __name__ == '__main__': |
| 33 main() |
OLD | NEW |