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

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

Issue 15087006: Docserver: there is only one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: epic rebase Created 7 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/compiled_file_system.py
diff --git a/chrome/common/extensions/docs/server2/compiled_file_system.py b/chrome/common/extensions/docs/server2/compiled_file_system.py
index 087eea8a08761efd4b172fc80181f7a45b8555d6..29b1363abaf3794a7e1e76733affcc372409ab07 100644
--- a/chrome/common/extensions/docs/server2/compiled_file_system.py
+++ b/chrome/common/extensions/docs/server2/compiled_file_system.py
@@ -26,12 +26,12 @@ class CompiledFileSystem(object):
"""
assert isinstance(cls, type)
assert not cls.__name__[0].islower() # guard against non-class types
- full_name = cls.__name__
+ full_name = [cls.__name__, self._file_system.GetIdentity()]
if category is not None:
- full_name = '%s/%s' % (full_name, category)
- def create_object_store(category):
+ full_name.append(category)
+ def create_object_store(my_category):
return self._object_store_creator.Create(
- CompiledFileSystem, category='%s/%s' % (full_name, category))
+ CompiledFileSystem, category='/'.join(full_name + [my_category]))
return CompiledFileSystem(self._file_system,
populate_function,
create_object_store('file'),

Powered by Google App Engine
This is Rietveld 408576698