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

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

Issue 14267024: Devserver: have a separate ObjectStore namespace (both memcache and datastore) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove _CheckVersions 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/server_instance.py
diff --git a/chrome/common/extensions/docs/server2/server_instance.py b/chrome/common/extensions/docs/server2/server_instance.py
index 54550b3c8b7ec3880264dc8d189523bd61824860..b2b059e705f5181b937145bd9f9fabd5247c2e3d 100644
--- a/chrome/common/extensions/docs/server2/server_instance.py
+++ b/chrome/common/extensions/docs/server2/server_instance.py
@@ -11,6 +11,7 @@ from api_data_source import APIDataSource
from api_list_data_source import APIListDataSource
from appengine_blobstore import AppEngineBlobstore
from appengine_url_fetcher import AppEngineUrlFetcher
+from appengine_wrappers import GetAppVersion
from branch_utility import BranchUtility
from caching_file_system import CachingFileSystem
from compiled_file_system import CompiledFileSystem
@@ -51,7 +52,8 @@ class ServerInstance(object):
'''
branch_utility = ServerInstance._GetOrCreateBranchUtility()
branch = branch_utility.GetBranchNumberForChannelName(channel)
- object_store_creator_factory = ObjectStoreCreator.Factory(branch)
+ object_store_creator_factory = ObjectStoreCreator.Factory(GetAppVersion(),
+ branch)
# No svn nor github file systems. Rely on the crons to fill the caches, and
# for the caches to exist.
return ServerInstance(
@@ -87,7 +89,8 @@ class ServerInstance(object):
viewvc_url = svn_url.replace(url_constants.SVN_URL,
url_constants.VIEWVC_URL)
- object_store_creator_factory = ObjectStoreCreator.Factory(branch)
+ object_store_creator_factory = ObjectStoreCreator.Factory(GetAppVersion(),
+ branch)
svn_file_system = CachingFileSystem(
SubversionFileSystem(AppEngineUrlFetcher(svn_url),
@@ -102,7 +105,7 @@ class ServerInstance(object):
@staticmethod
def CreateForTest(file_system):
return ServerInstance('test',
- ObjectStoreCreator.Factory('test'),
+ ObjectStoreCreator.TestFactory(),
file_system,
None)

Powered by Google App Engine
This is Rietveld 408576698