| OLD | NEW |
| 1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | 28 |
| 29 import webapp2 | 29 import webapp2 |
| 30 | 30 |
| 31 from appengine_module.test_results.handlers import buildershandler | 31 from appengine_module.test_results.handlers import buildershandler |
| 32 from appengine_module.test_results.handlers import builderstatehandler | 32 from appengine_module.test_results.handlers import builderstatehandler |
| 33 from appengine_module.test_results.handlers import menu | 33 from appengine_module.test_results.handlers import menu |
| 34 from appengine_module.test_results.handlers import redirector |
| 34 from appengine_module.test_results.handlers import testfilehandler | 35 from appengine_module.test_results.handlers import testfilehandler |
| 35 | 36 |
| 36 routes = [ | 37 routes = [ |
| 37 ('/testfile/delete', testfilehandler.DeleteFile), | 38 ('/testfile/delete', testfilehandler.DeleteFile), |
| 38 ('/testfile/upload', testfilehandler.Upload), | 39 ('/testfile/upload', testfilehandler.Upload), |
| 39 ('/testfile/uploadform', testfilehandler.UploadForm), | 40 ('/testfile/uploadform', testfilehandler.UploadForm), |
| 40 ('/testfile/?', testfilehandler.GetFile), | 41 ('/testfile/?', testfilehandler.GetFile), |
| 41 ('/builders', buildershandler.GetBuilders), | 42 ('/builders', buildershandler.GetBuilders), |
| 42 ('/updatebuilders', buildershandler.UpdateBuilders), | 43 ('/updatebuilders', buildershandler.UpdateBuilders), |
| 43 ('/builderstate', builderstatehandler.GetBuilderState), | 44 ('/builderstate', builderstatehandler.GetBuilderState), |
| 44 ('/updatebuilderstate', builderstatehandler.Update), | 45 ('/updatebuilderstate', builderstatehandler.Update), |
| 45 ('/', menu.Menu), | 46 ('/', menu.Menu), |
| 47 webapp2.Route('/revision_range', webapp2.RedirectHandler, defaults={ |
| 48 '_uri': redirector.get_googlesource_url}), |
| 46 ] | 49 ] |
| 47 | 50 |
| 48 app = webapp2.WSGIApplication(routes, debug=True) | 51 app = webapp2.WSGIApplication(routes, debug=True) |
| OLD | NEW |