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

Unified Diff: utils/apidoc/app_engine/scripts/redirector.py

Issue 10383129: remove dart dom from docs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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
« no previous file with comments | « utils/apidoc/app_engine/scripts/__init__.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/apidoc/app_engine/scripts/redirector.py
diff --git a/utils/apidoc/app_engine/scripts/redirector.py b/utils/apidoc/app_engine/scripts/redirector.py
new file mode 100644
index 0000000000000000000000000000000000000000..d1260901b0d53f6a58468cdd3cacf6262df6650b
--- /dev/null
+++ b/utils/apidoc/app_engine/scripts/redirector.py
@@ -0,0 +1,19 @@
+# Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+
+import webapp2
+
+class DomRedirectPage(webapp2.RequestHandler):
+ def get(self):
+ if self.request.path == '/dom.html':
+ self.redirect('/html.html', permanent=True)
+ return
+
+ url = self.request.path[4:len(self.request.path)]
+ self.redirect('/html' + url, permanent=True)
+
+application = webapp2.WSGIApplication(
+ [('/dom.*', DomRedirectPage)],
+ debug=True)
+
« no previous file with comments | « utils/apidoc/app_engine/scripts/__init__.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698