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

Issue 10826037: Extensions Docs Server: Fix zipper (Closed)

Created:
8 years, 4 months ago by cduvall
Modified:
8 years, 4 months ago
CC:
chromium-reviews, Aaron Boodman, mihaip-chromium-reviews_chromium.org, clintstaley
Visibility:
Public.

Description

Extensions Docs Server: Fix zipper The ExampleZipper was getting caught on unicode characters. I added a parameter to Read in FileSystem that will return the files without converting to unicode. BUG=131095 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148980

Patch Set 1 #

Total comments: 8

Patch Set 2 : process -> binary #

Total comments: 2

Patch Set 3 : fixed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -13 lines) Patch
M chrome/common/extensions/docs/server2/example_zipper.py View 1 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/file_system.py View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/server2/local_file_system.py View 1 2 chunks +7 lines, -4 lines 0 comments Download
M chrome/common/extensions/docs/server2/memcache_file_system.py View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/common/extensions/docs/server2/subversion_file_system.py View 1 3 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
cduvall
Fix for problem chebert found.
8 years, 4 months ago (2012-07-26 22:36:03 UTC) #1
not at google - send to devlin
Nice find. https://chromiumcodereview.appspot.com/10826037/diff/1/chrome/common/extensions/docs/server2/example_zipper.py File chrome/common/extensions/docs/server2/example_zipper.py (right): https://chromiumcodereview.appspot.com/10826037/diff/1/chrome/common/extensions/docs/server2/example_zipper.py#newcode27 chrome/common/extensions/docs/server2/example_zipper.py:27: for name, file_ in self._file_system.Read(files, False).Get().iteritems(): name ...
8 years, 4 months ago (2012-07-27 04:54:36 UTC) #2
cduvall
https://chromiumcodereview.appspot.com/10826037/diff/1/chrome/common/extensions/docs/server2/example_zipper.py File chrome/common/extensions/docs/server2/example_zipper.py (right): https://chromiumcodereview.appspot.com/10826037/diff/1/chrome/common/extensions/docs/server2/example_zipper.py#newcode27 chrome/common/extensions/docs/server2/example_zipper.py:27: for name, file_ in self._file_system.Read(files, False).Get().iteritems(): On 2012/07/27 04:54:36, ...
8 years, 4 months ago (2012-07-27 18:12:28 UTC) #3
not at google - send to devlin
lgtm https://chromiumcodereview.appspot.com/10826037/diff/7001/chrome/common/extensions/docs/server2/file_system.py File chrome/common/extensions/docs/server2/file_system.py (right): https://chromiumcodereview.appspot.com/10826037/diff/7001/chrome/common/extensions/docs/server2/file_system.py#newcode27 chrome/common/extensions/docs/server2/file_system.py:27: directory, and a list of files in the ...
8 years, 4 months ago (2012-07-30 08:21:18 UTC) #4
cduvall
8 years, 4 months ago (2012-07-30 18:27:31 UTC) #5
http://codereview.chromium.org/10826037/diff/7001/chrome/common/extensions/do...
File chrome/common/extensions/docs/server2/file_system.py (right):

http://codereview.chromium.org/10826037/diff/7001/chrome/common/extensions/do...
chrome/common/extensions/docs/server2/file_system.py:27: directory, and a list
of files in the directory is mapped to the path.
On 2012/07/30 08:21:19, kalman wrote:
> Could you add like
> 
> If binary=False, the contents of each file will be unicode parsed as utf-8,
and
> failing that as latin-1 (some extension docs use latin-1). If binary=True then
> the contents will be a str.

Done.

Powered by Google App Engine
This is Rietveld 408576698