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

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

Issue 14125010: Docserver: Add support for viewing docs with a codereview patch applied (Closed) Base URL: https://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 8 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/render_servlet.py
===================================================================
--- chrome/common/extensions/docs/server2/render_servlet.py (revision 197821)
+++ chrome/common/extensions/docs/server2/render_servlet.py (working copy)
@@ -58,6 +58,9 @@
if channel is None:
channel = _DEFAULT_CHANNEL
+ base_path = '/'
+ else:
+ base_path = '/%s/' % channel
# AppEngine instances should never need to call out to SVN. That should
# only ever be done by the cronjobs, which then write the result into
@@ -77,7 +80,7 @@
# to run the cron before rendering things.
constructor = (ServerInstance.CreateOnline if _ALWAYS_ONLINE else
ServerInstance.GetOrCreateOffline)
- server_instance = constructor(channel)
+ server_instance = constructor(channel, base_path)
canonical_path = server_instance.path_canonicalizer.Canonicalize(path)
if path != canonical_path:

Powered by Google App Engine
This is Rietveld 408576698