Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 29933596: Issue 5333 - Allow cms to generate relative pages (Closed)

Created:
Nov. 2, 2018, 2:48 a.m. by rhowell
Modified:
Jan. 9, 2019, 10:56 p.m.
Reviewers:
Vasily Kuznetsov
Base URL:
https://hg.adblockplus.org/cms/
Visibility:
Public.

Description

Issue 5333 - Allow cms to generate relative pages

Patch Set 1 : Allow cms to generate relative pages #

Total comments: 14

Patch Set 2 : Address comments on PS1, rearrange test files #

Total comments: 2

Patch Set 3 : Address comments on PS2, rearrange test files (again) #

Total comments: 8

Patch Set 4 : Address comments on PS3 #

Patch Set 5 : Translate rel_path #

Total comments: 5

Patch Set 6 : Address comments on PS5 #

Total comments: 2

Patch Set 7 : Remove last ipdb comment #

Patch Set 8 : Add documentation, remove extraneous global #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -14 lines) Patch
M cms/bin/generate_static_pages.py View 3 chunks +5 lines, -3 lines 0 comments Download
M cms/converters.py View 1 2 3 4 5 6 7 3 chunks +12 lines, -0 lines 0 comments Download
M cms/utils.py View 3 chunks +4 lines, -2 lines 0 comments Download
M docs/usage/generate-static-files.md View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
M tests/expected_output/common/de/translate-partial View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/common/en/filter View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/common/en/global View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/common/en/includer View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/common/en/metadata_json View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/common/en/metadata_json_comment View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/common/en/metadata_old_comment View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/common/en/sitemap View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/de/translate View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/de/translate-html View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/de/translate-include View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/de/translate-not-enough View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/de/translate-template View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/de/translate-tmpl View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/en/get_page_url View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/en/siteurl View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/en/translate View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/en/translate-html View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/en/translate-include View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/en/translate-template View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/dynamic/en/translate-tmpl View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
R tests/expected_output/en/get_page_url@static View 1 1 chunk +0 lines, -5 lines 0 comments Download
R tests/expected_output/en/rel_path@dynamic View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
R tests/expected_output/en/rel_path@static View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
R tests/expected_output/en/siteurl@static View 1 1 chunk +0 lines, -1 line 0 comments Download
A tests/expected_output/relative/de/foo/bar View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
A tests/expected_output/relative/de/rel_path View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
A tests/expected_output/relative/en/foo/bar View 1 2 3 4 5 1 chunk +10 lines, -0 lines 0 comments Download
A tests/expected_output/relative/en/rel_path View 1 2 3 4 1 chunk +20 lines, -0 lines 0 comments Download
M tests/expected_output/static/de/translate View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/static/de/translate-html View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/static/de/translate-include View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/static/de/translate-not-enough View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/static/de/translate-template View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/static/de/translate-tmpl View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A tests/expected_output/static/en/get_page_url View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A tests/expected_output/static/en/siteurl View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M tests/expected_output/static/en/translate View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/static/en/translate-html View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/static/en/translate-include View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/static/en/translate-template View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/expected_output/static/en/translate-tmpl View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M tests/test_page_outputs.py View 1 2 3 3 chunks +29 lines, -21 lines 0 comments Download
A tests/test_site/pages/foo/bar.html View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
R tests/test_site/pages/foo/bar.md View 1 2 1 chunk +0 lines, -5 lines 0 comments Download
M tests/test_site/pages/rel_path.html View 1 2 3 4 1 chunk +20 lines, -3 lines 0 comments Download
M tests/test_site/settings.ini View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 17
rhowell
Nov. 2, 2018, 2:48 a.m. (2018-11-02 02:48:42 UTC) #1
rhowell
On 2018/11/02 02:48:42, rhowell wrote: Hey Vasily! The linter seems to be complaining about a ...
Nov. 2, 2018, 3:01 a.m. (2018-11-02 03:01:27 UTC) #2
Vasily Kuznetsov
Hi Rosie! Looks pretty good. And it's not so much code in the end, which ...
Nov. 2, 2018, 10:45 a.m. (2018-11-02 10:45:36 UTC) #3
rhowell
Hey Vasily, thanks for the feedback! I think it's generating the correct relative links now. ...
Nov. 6, 2018, 3:34 a.m. (2018-11-06 03:34:42 UTC) #4
Vasily Kuznetsov
Hi Rosie, Regarding rearranging the tests: cool that you've tried, and it's fine to have ...
Nov. 6, 2018, 12:45 p.m. (2018-11-06 12:45:18 UTC) #5
rhowell
Hey Vasily! Ok, hopefully this is closer to what you had in mind. This file ...
Nov. 7, 2018, 4:16 p.m. (2018-11-07 16:16:59 UTC) #6
Vasily Kuznetsov
Hi Rosie! > Ok, hopefully this is closer to what you had in mind. This ...
Nov. 7, 2018, 6:03 p.m. (2018-11-07 18:03:03 UTC) #7
rhowell
Hey Vasily! I was thinking about maybe leaving one of the translate pages, just so ...
Nov. 7, 2018, 8:05 p.m. (2018-11-07 20:05:27 UTC) #8
Vasily Kuznetsov
Hi Rosie! A quick reply before going to bed (it's 1am here). > I was ...
Nov. 7, 2018, 8:21 p.m. (2018-11-07 20:21:32 UTC) #9
rhowell
On 2018/11/07 20:21:32, Vasily Kuznetsov wrote: > Hi Rosie! > > A quick reply before ...
Nov. 8, 2018, 2:48 a.m. (2018-11-08 02:48:47 UTC) #10
Vasily Kuznetsov
Hi Rosie! This looks pretty much done. There are just a couple of debugger invocations ...
Nov. 8, 2018, 2:36 p.m. (2018-11-08 14:36:15 UTC) #11
rhowell
Hi Vasily! Good catch, I wonder why this was passing for me. It seems to ...
Nov. 8, 2018, 8:05 p.m. (2018-11-08 20:05:20 UTC) #12
Vasily Kuznetsov
Hi Rosie! Basically LGTM, but please remove that commented out debugger call before pushing. Thanks ...
Nov. 9, 2018, 10:53 a.m. (2018-11-09 10:53:29 UTC) #13
rhowell
Hi Vasily! Just want to upload to codereview one last time as a sanity check ...
Nov. 9, 2018, 5:18 p.m. (2018-11-09 17:18:37 UTC) #14
Vasily Kuznetsov
On 2018/11/09 17:18:37, rhowell wrote: > Hi Vasily! > > Just want to upload to ...
Nov. 9, 2018, 7:08 p.m. (2018-11-09 19:08:34 UTC) #15
rhowell
On 2018/11/09 19:08:34, Vasily Kuznetsov wrote: > On 2018/11/09 17:18:37, rhowell wrote: > > Hi ...
Nov. 9, 2018, 8:18 p.m. (2018-11-09 20:18:45 UTC) #16
Vasily Kuznetsov
Nov. 12, 2018, 3:20 p.m. (2018-11-12 15:20:27 UTC) #17
Even more LGTM

Powered by Google App Engine
This is Rietveld