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

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

Issue 10828042: Extensions Docs Server: Integration testing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix for CQ Created 8 years, 5 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/server_instance.py
diff --git a/chrome/common/extensions/docs/server2/server_instance.py b/chrome/common/extensions/docs/server2/server_instance.py
index c8ebe85b61db73f21ec19a4a0d1bb04d7f7010be..53bf38cc9debbb70b1178babdfe76edfcb7f7bcd 100644
--- a/chrome/common/extensions/docs/server2/server_instance.py
+++ b/chrome/common/extensions/docs/server2/server_instance.py
@@ -7,7 +7,7 @@ import mimetypes
import os
STATIC_DIR_PREFIX = 'docs/server2'
-DOCS_PREFIX = 'docs'
+DOCS_PATH = 'docs'
class ServerInstance(object):
"""This class is used to hold a data source and fetcher for an instance of a
@@ -40,7 +40,7 @@ class ServerInstance(object):
content = self._example_zipper.Create(path[:-len('.zip')])
response.headers['content-type'] = mimetypes.types_map['.zip']
elif path.startswith('examples/'):
- content = self._cache.GetFromFile(DOCS_PREFIX + '/' + path)
+ content = self._cache.GetFromFile(DOCS_PATH + '/' + path)
response.headers['content-type'] = 'text/plain'
elif path.startswith('static/'):
content = self._FetchStaticResource(path, response)

Powered by Google App Engine
This is Rietveld 408576698