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

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

Issue 10828235: Extensions Docs Server: Efficient MemcacheFileSystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes and comments Created 8 years, 4 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/handler.py
diff --git a/chrome/common/extensions/docs/server2/handler.py b/chrome/common/extensions/docs/server2/handler.py
index cb7322a2092a74dfb7e6b3379df5553831e0e8d4..9cf6c0f24939f14df82d82990d6f89c974175fdc 100644
--- a/chrome/common/extensions/docs/server2/handler.py
+++ b/chrome/common/extensions/docs/server2/handler.py
@@ -66,10 +66,13 @@ def _GetInstanceForBranch(channel_name, local_path):
if branch == 'local':
file_system = LocalFileSystem(local_path)
else:
- fetcher = AppEngineUrlFetcher(
- _GetURLFromBranch(branch) + '/' + EXTENSIONS_PATH)
- file_system = MemcacheFileSystem(SubversionFileSystem(fetcher),
- AppEngineMemcache(branch))
+ svn_url = _GetURLFromBranch(branch) + '/' + EXTENSIONS_PATH
+ stat_fetcher = AppEngineUrlFetcher(
+ svn_url.replace(url_constants.SVN_URL, url_constants.VIEWVC_URL))
+ fetcher = AppEngineUrlFetcher(svn_url)
+ file_system = MemcacheFileSystem(
+ SubversionFileSystem(fetcher, stat_fetcher),
+ AppEngineMemcache(branch))
cache_builder = FileSystemCache.Builder(file_system)
api_list_data_source = APIListDataSource(cache_builder,
« no previous file with comments | « chrome/common/extensions/docs/server2/file_system.py ('k') | chrome/common/extensions/docs/server2/local_file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698