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

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

Issue 10804036: Extensions Docs Server: Internationalized samples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: SamplesDataSource.Factory 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/file_system.py
diff --git a/chrome/common/extensions/docs/server2/file_system.py b/chrome/common/extensions/docs/server2/file_system.py
index af8c5018459a14909aa963223a9a3cf1667f20f5..613c6e8de156031d690aacd4d329f0d6426b835b 100644
--- a/chrome/common/extensions/docs/server2/file_system.py
+++ b/chrome/common/extensions/docs/server2/file_system.py
@@ -18,6 +18,11 @@ class FileSystem(object):
"""
raise NotImplementedError()
+ def ReadSingleFile(self, path):
not at google - send to devlin 2012/07/23 13:25:37 oh this works for directories as well as files. Oo
cduvall 2012/07/23 18:10:37 Done.
+ """Reads a single file from the FileSystem.
+ """
+ return self.Read([path]).Get()[path]
+
def Stat(self, path):
"""Gets the version number of |path| if it is a directory, or the parent
directory if it is a file.

Powered by Google App Engine
This is Rietveld 408576698