Chromium Code Reviews| 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 12 matching lines...) Expand all Loading... | |
| 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 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 handlers import buildershandler | 31 from handlers import buildershandler |
| 32 from handlers import menu | 32 from handlers import menu |
| 33 from handlers import redirector | |
| 33 from handlers import testfilehandler | 34 from handlers import testfilehandler |
| 34 | 35 |
| 35 routes = [ | 36 routes = [ |
| 36 ('/testfile/delete', testfilehandler.DeleteFile), | 37 ('/testfile/delete', testfilehandler.DeleteFile), |
| 37 ('/testfile/upload', testfilehandler.Upload), | 38 ('/testfile/upload', testfilehandler.Upload), |
| 38 ('/testfile/uploadform', testfilehandler.UploadForm), | 39 ('/testfile/uploadform', testfilehandler.UploadForm), |
| 39 ('/testfile/?', testfilehandler.GetFile), | 40 ('/testfile/?', testfilehandler.GetFile), |
| 40 ('/builders', buildershandler.GetBuilders), | 41 ('/builders', buildershandler.GetBuilders), |
| 41 ('/updatebuilders', buildershandler.UpdateBuilders), | 42 ('/updatebuilders', buildershandler.UpdateBuilders), |
| 43 webapp2.Route('/rev', webapp2.RedirectHandler, defaults={ | |
|
szager1
2014/09/04 20:51:32
nit: Maybe '/revrange'? Maybe '/rev' could redire
ghost stip (do not use)
2014/09/04 22:53:25
I agree with stefan here
ojan
2014/09/05 21:40:33
I went verbose with revision_range
| |
| 44 '_uri': redirector.get_googlesource_url}), | |
| 42 ('/', menu.Menu), | 45 ('/', menu.Menu), |
| 43 ] | 46 ] |
| 44 | 47 |
| 45 app = webapp2.WSGIApplication(routes, debug=True) | 48 app = webapp2.WSGIApplication(routes, debug=True) |
| OLD | NEW |