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

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

Issue 14218004: Devserver: only populate data during cron jobs, meaning all data from instances (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix integration test 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/file_system.py
diff --git a/chrome/common/extensions/docs/server2/file_system.py b/chrome/common/extensions/docs/server2/file_system.py
index fd2cced2dd69114c05b1a9136cfa6e9841e51a40..da0bbcb051bccaa00eba0b32aa0ccb73775fb01d 100644
--- a/chrome/common/extensions/docs/server2/file_system.py
+++ b/chrome/common/extensions/docs/server2/file_system.py
@@ -63,8 +63,16 @@ class FileSystem(object):
'''
raise NotImplementedError()
- def GetVersion(self):
+ @classmethod
+ def GetName(cls):
+ '''The type of the file system, exposed for caching classes to namespace
+ their caches. It is unlikely that this needs to be overridden.
+ '''
+ return cls.__name__
+
+ @classmethod
+ def GetVersion(cls):
'''The version of the file system, exposed for caching classes backed to
- file systems. This is unlikely to change.
+ file systems. It is unlikely that this needs to be overridden.
'''
return None
« no previous file with comments | « chrome/common/extensions/docs/server2/datastore_models.py ('k') | chrome/common/extensions/docs/server2/github_file_system.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698