Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2925)

Unified Diff: chrome/common/extensions/docs/server2/clark.py

Issue 10387225: Die build.py, Die: Part 1 (BranchUtility and SubversionFetcher) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()

Powered by Google App Engine
This is Rietveld 408576698