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

Issue 10878056: Extensions Docs Server: Fix samples page and ExampleZipper (Closed)

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

Description

Extensions Docs Server: Fix samples page and ExampleZipper The path for the default images in the samples page was wrong because of recent branch/channel switches, and ExampleZipper was getting cached unicode data instead of binary data. BUG=144672 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=153604

Patch Set 1 : #

Total comments: 5

Patch Set 2 : test + fixes #

Messages

Total messages: 5 (0 generated)
cduvall
8 years, 4 months ago (2012-08-24 17:40:56 UTC) #1
not at google - send to devlin
Could you add a regression test to samples_data_source_test? https://chromiumcodereview.appspot.com/10878056/diff/1001/chrome/common/extensions/docs/server2/memcache_file_system.py File chrome/common/extensions/docs/server2/memcache_file_system.py (right): https://chromiumcodereview.appspot.com/10878056/diff/1001/chrome/common/extensions/docs/server2/memcache_file_system.py#newcode78 chrome/common/extensions/docs/server2/memcache_file_system.py:78: namespace ...
8 years, 3 months ago (2012-08-27 04:31:47 UTC) #2
cduvall
http://codereview.chromium.org/10878056/diff/1001/chrome/common/extensions/docs/server2/memcache_file_system.py File chrome/common/extensions/docs/server2/memcache_file_system.py (right): http://codereview.chromium.org/10878056/diff/1001/chrome/common/extensions/docs/server2/memcache_file_system.py#newcode78 chrome/common/extensions/docs/server2/memcache_file_system.py:78: namespace = '%s.binary' % namespace On 2012/08/27 04:31:48, kalman ...
8 years, 3 months ago (2012-08-27 18:04:34 UTC) #3
cduvall
I added the test to example_zipper_test.py btw.
8 years, 3 months ago (2012-08-27 23:54:55 UTC) #4
not at google - send to devlin
8 years, 3 months ago (2012-08-28 01:39:09 UTC) #5
lgtm

http://codereview.chromium.org/10878056/diff/1001/chrome/common/extensions/do...
File chrome/common/extensions/docs/server2/memcache_file_system.py (right):

http://codereview.chromium.org/10878056/diff/1001/chrome/common/extensions/do...
chrome/common/extensions/docs/server2/memcache_file_system.py:78: namespace =
'%s.binary' % namespace
On 2012/08/27 18:04:34, cduvall wrote:
> On 2012/08/27 04:31:48, kalman wrote:
> > is this actually a problem? do we ever read the same path sometimes in
binary
> > and sometimes not? That seems very strange.
> 
> Yeah we do, this is why I was getting an error when I tried to download some
of
> the samples zips. The JSON files for the samples are cached as unicode
(because
> they are read with binary=False in samples_data_source), and then they are
read
> with binary=True for the example_zipper. The example_zipper was giving unicode
> errors because of this.

Ok. I would prefer to see a solution which just cached things in binary then
converted to non-binary as needed, but it's a yak that isn't worth shaving yet.

Powered by Google App Engine
This is Rietveld 408576698