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

Issue 10545043: Extensions docs server: Design changes, partial template support. (Closed)

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

Description

Die build.py, Die: Part 3 (Design changes, partial template support) The TemplateFetcher class is now called TemplateDataSource. TemplateDataSource works with Handlebar. The Server now keeps a cache of Instances used to render pages (as suggested in the previous CL). Part 2: http://codereview.chromium.org/10500004/ BUG=131095 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=141157

Patch Set 1 #

Total comments: 36

Patch Set 2 : Addressed comments #

Total comments: 14

Patch Set 3 : Removed Handlebar changes #

Patch Set 4 : Made suggested changes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+280 lines, -268 lines) Patch
M chrome/common/extensions/docs/server2/branch_utility.py View 1 1 chunk +37 lines, -44 lines 0 comments Download
M chrome/common/extensions/docs/server2/branch_utility_test.py View 1 1 chunk +19 lines, -14 lines 0 comments Download
M chrome/common/extensions/docs/server2/echo_handler.py View 1 1 chunk +34 lines, -42 lines 0 comments Download
M chrome/common/extensions/docs/server2/local_fetcher.py View 1 1 chunk +11 lines, -10 lines 0 comments Download
M chrome/common/extensions/docs/server2/local_fetcher_test.py View 1 chunk +3 lines, -3 lines 0 comments Download
A chrome/common/extensions/docs/server2/server_instance.py View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/common/extensions/docs/server2/subversion_fetcher.py View 1 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/common/extensions/docs/server2/subversion_fetcher_test.py View 1 chunk +6 lines, -4 lines 0 comments Download
A chrome/common/extensions/docs/server2/template_data_source.py View 1 2 3 1 chunk +65 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/template_data_source_test.py View 1 2 3 1 chunk +63 lines, -0 lines 1 comment Download
D chrome/common/extensions/docs/server2/template_fetcher.py View 1 chunk +0 lines, -39 lines 0 comments Download
D chrome/common/extensions/docs/server2/template_fetcher_test.py View 1 chunk +0 lines, -46 lines 0 comments Download
D chrome/common/extensions/docs/server2/template_utility.py View 1 1 chunk +0 lines, -13 lines 0 comments Download
D chrome/common/extensions/docs/server2/template_utility_test.py View 1 1 chunk +0 lines, -29 lines 0 comments Download
A chrome/common/extensions/docs/server2/test_data/template_data_source/partials/input.json View 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/test_data/template_data_source/partials/name_tmpl.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/test_data/template_data_source/partials/test.html View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/common/extensions/docs/server2/test_data/template_data_source/partials/test_tmpl.html View 1 chunk +1 line, -0 lines 0 comments Download
A + chrome/common/extensions/docs/server2/test_data/template_data_source/render/test1.json View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/common/extensions/docs/server2/test_data/template_data_source/render/test1_expected.html View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/common/extensions/docs/server2/test_data/template_data_source/render/test1_tmpl.html View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/common/extensions/docs/server2/test_data/template_data_source/render/test2.json View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/common/extensions/docs/server2/test_data/template_data_source/render/test2_expected.html View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/common/extensions/docs/server2/test_data/template_data_source/render/test2_tmpl.html View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/common/extensions/docs/server2/test_data/template_data_source/simple/test1.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/common/extensions/docs/server2/test_data/template_data_source/simple/test2.html View 0 chunks +-1 lines, --1 lines 0 comments Download
D chrome/common/extensions/docs/server2/test_data/template_fetcher/a/test1.html View 1 chunk +0 lines, -1 line 0 comments Download
D chrome/common/extensions/docs/server2/test_data/template_fetcher/a/test2.html View 1 chunk +0 lines, -1 line 0 comments Download
D chrome/common/extensions/docs/server2/test_data/template_fetcher/b/test1.html View 1 chunk +0 lines, -1 line 0 comments Download
D chrome/common/extensions/docs/server2/test_data/template_utility/test1.html View 1 1 chunk +0 lines, -1 line 0 comments Download
D chrome/common/extensions/docs/server2/test_data/template_utility/test1.json View 1 1 chunk +0 lines, -6 lines 0 comments Download
D chrome/common/extensions/docs/server2/test_data/template_utility/test1_tmpl.html View 1 1 chunk +0 lines, -1 line 0 comments Download
D chrome/common/extensions/docs/server2/test_data/template_utility/test2.html View 1 1 chunk +0 lines, -1 line 0 comments Download
D chrome/common/extensions/docs/server2/test_data/template_utility/test2.json View 1 1 chunk +0 lines, -12 lines 0 comments Download
D chrome/common/extensions/docs/server2/test_data/template_utility/test2_tmpl.html View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
cduvall
This patch implements the design changes discussed in the last CL. I think I covered ...
8 years, 6 months ago (2012-06-06 22:42:39 UTC) #1
Aaron Boodman
I think it's time to start giving these CLs proper descriptions, rather than 'die build.py, ...
8 years, 6 months ago (2012-06-06 23:47:22 UTC) #2
Aaron Boodman
exciting! https://chromiumcodereview.appspot.com/10545043/diff/1/chrome/common/extensions/docs/server2/echo_handler.py File chrome/common/extensions/docs/server2/echo_handler.py (right): https://chromiumcodereview.appspot.com/10545043/diff/1/chrome/common/extensions/docs/server2/echo_handler.py#newcode1 chrome/common/extensions/docs/server2/echo_handler.py:1: #!/usr/bin/env python Is the name 'echo_handler.py' still correct ...
8 years, 6 months ago (2012-06-06 23:49:58 UTC) #3
clintstaley_gmail.com
It was always meant as a temporary whimsical description. :) What more serious alternative would ...
8 years, 6 months ago (2012-06-06 23:56:41 UTC) #4
not at google - send to devlin
A lot there! I'm still getting a grips on the server, sorry :) http://codereview.chromium.org/10545043/diff/1/chrome/common/extensions/docs/server2/echo_handler.py File ...
8 years, 6 months ago (2012-06-07 04:43:57 UTC) #5
not at google - send to devlin
Btw could you explain the changes you made to Handlebar, then I'll submit that into ...
8 years, 6 months ago (2012-06-07 04:46:27 UTC) #6
cduvall
On 2012/06/07 04:46:27, kalman wrote: > Btw could you explain the changes you made to ...
8 years, 6 months ago (2012-06-08 00:39:02 UTC) #7
cduvall
http://codereview.chromium.org/10545043/diff/1/chrome/common/extensions/docs/server2/echo_handler.py File chrome/common/extensions/docs/server2/echo_handler.py (right): http://codereview.chromium.org/10545043/diff/1/chrome/common/extensions/docs/server2/echo_handler.py#newcode36 chrome/common/extensions/docs/server2/echo_handler.py:36: class Instance(object): On 2012/06/07 04:43:57, kalman wrote: > On ...
8 years, 6 months ago (2012-06-08 00:39:23 UTC) #8
not at google - send to devlin
Just fairly superficial comments left. LGTM after those. http://codereview.chromium.org/10545043/diff/9002/chrome/common/extensions/docs/server2/server_instance.py File chrome/common/extensions/docs/server2/server_instance.py (right): http://codereview.chromium.org/10545043/diff/9002/chrome/common/extensions/docs/server2/server_instance.py#newcode10 chrome/common/extensions/docs/server2/server_instance.py:10: class ...
8 years, 6 months ago (2012-06-08 01:42:53 UTC) #9
not at google - send to devlin
(btw: this is really cool)
8 years, 6 months ago (2012-06-08 01:43:49 UTC) #10
cduvall
http://codereview.chromium.org/10545043/diff/9002/chrome/common/extensions/docs/server2/server_instance.py File chrome/common/extensions/docs/server2/server_instance.py (right): http://codereview.chromium.org/10545043/diff/9002/chrome/common/extensions/docs/server2/server_instance.py#newcode10 chrome/common/extensions/docs/server2/server_instance.py:10: class ServerInstance(object): On 2012/06/08 01:42:53, kalman wrote: > Comment? ...
8 years, 6 months ago (2012-06-08 02:18:05 UTC) #11
not at google - send to devlin
(just an FYI, I know you've already submitted it, I just looked again out of ...
8 years, 6 months ago (2012-06-08 02:23:44 UTC) #12
cduvall
8 years, 6 months ago (2012-06-08 02:24:49 UTC) #13
On 2012/06/08 02:23:44, kalman wrote:
> (just an FYI, I know you've already submitted it, I just looked again out of
> curiosity)
> 
>
http://codereview.chromium.org/10545043/diff/3004/chrome/common/extensions/do...
> File chrome/common/extensions/docs/server2/template_data_source_test.py
(right):
> 
>
http://codereview.chromium.org/10545043/diff/3004/chrome/common/extensions/do...
> chrome/common/extensions/docs/server2/template_data_source_test.py:27:
> self._ReadLocalFile(name + '.json')))
> Btw, in general, if you think it's more readable to have something like
> 
>     self.assertEquals(
>         self._ReadLocalFile(name + '_expected.html'),
>         data_source.Render(template_name, self._ReadLocalFile(name +
'.json')))
> 
> then that's fine too. All nits, so much of a muchness.

Ahh ok. I just didn't really know what to do with the indenting on that one.

Powered by Google App Engine
This is Rietveld 408576698