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

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

Issue 10804036: Extensions Docs Server: Internationalized samples (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move logic into file_system 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/subversion_file_system.py
diff --git a/chrome/common/extensions/docs/server2/subversion_file_system.py b/chrome/common/extensions/docs/server2/subversion_file_system.py
index e9af0703aaa192084b0bdbb5b3c220d7f1eb6e80..5b10f88c68f028f0646bfd7984d1d5091d662005 100644
--- a/chrome/common/extensions/docs/server2/subversion_file_system.py
+++ b/chrome/common/extensions/docs/server2/subversion_file_system.py
@@ -5,10 +5,10 @@
import re
import xml.dom.minidom as xml
-from file_system import FileSystem
+import file_system
from future import Future
-class SubversionFileSystem(FileSystem):
+class SubversionFileSystem(file_system.FileSystem):
"""Class to fetch resources from src.chromium.org.
"""
def __init__(self, fetcher):
@@ -45,7 +45,7 @@ class _AsyncFetchFuture(object):
elif path.endswith('/'):
self._value[path] = self._ListDir(result.content)
else:
- self._value[path] = result.content
+ self._value[path] = file_system._ProcessFileData(result.content, path)
if self._error is not None:
raise self._error
return self._value

Powered by Google App Engine
This is Rietveld 408576698