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

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

Issue 10828235: Extensions Docs Server: Efficient MemcacheFileSystem (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tests! 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/fake_url_fetcher.py
diff --git a/chrome/common/extensions/docs/server2/fake_url_fetcher.py b/chrome/common/extensions/docs/server2/fake_url_fetcher.py
index 99bae8d7ab77292b93a3b0d52a732486fd8dcfb7..b9adae9f95a78d2818f9765ed516abe14b608b08 100644
--- a/chrome/common/extensions/docs/server2/fake_url_fetcher.py
+++ b/chrome/common/extensions/docs/server2/fake_url_fetcher.py
@@ -21,6 +21,8 @@ class FakeUrlFetcher(object):
return f.read()
def _ListDir(self, directory):
+ if not os.path.isdir(os.path.join(self._base_path, directory)):
+ return self._ReadFile(directory[:-1])
not at google - send to devlin 2012/08/13 05:34:15 How can _ListDir be passed something that isn't a
cduvall 2012/08/13 19:45:45 This is just for testing. The file has the content
files = os.listdir(os.path.join(self._base_path, directory))
html = '<html><title>Revision: 00000</title>\n'
for filename in files:

Powered by Google App Engine
This is Rietveld 408576698