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

Issue 5148261828526080: Issue 2119 - Add get_page_content template function. (Closed)

Created:
April 5, 2015, 12:03 p.m. by kzar
Modified:
April 14, 2015, 5:16 p.m.
CC:
saroyanm
Visibility:
Public.

Description

Issue 2119 - Add get_page_content template function.

Patch Set 1 #

Total comments: 12

Patch Set 2 : Addressed Sebastian's feedback. #

Total comments: 4

Patch Set 3 : Addressed Wladimir's feedback. #

Patch Set 4 : get_page_content needs to return page title as well. #

Total comments: 4

Patch Set 5 : Addressed further comments. #

Total comments: 2

Patch Set 6 : Use for, break, else control flow for page format guessing. #

Total comments: 2

Patch Set 7 : Use .iterkeys() instead of .keys() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -3 lines) Patch
M cms/converters.py View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M cms/utils.py View 1 2 3 4 5 6 3 chunks +16 lines, -3 lines 0 comments Download

Messages

Total messages: 15
kzar
Patch Set 1 http://codereview.adblockplus.org/5148261828526080/diff/5629499534213120/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5148261828526080/diff/5629499534213120/cms/converters.py#newcode347 cms/converters.py:347: from utils import get_page_params (I import ...
April 5, 2015, 12:10 p.m. (2015-04-05 12:10:12 UTC) #1
Sebastian Noack
http://codereview.adblockplus.org/5148261828526080/diff/5629499534213120/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5148261828526080/diff/5629499534213120/cms/converters.py#newcode347 cms/converters.py:347: from utils import get_page_params On 2015/04/05 12:10:12, kzar wrote: ...
April 5, 2015, 12:50 p.m. (2015-04-05 12:50:17 UTC) #2
kzar
Patch Set 2 : Addressed Sebastian's feedback. http://codereview.adblockplus.org/5148261828526080/diff/5629499534213120/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5148261828526080/diff/5629499534213120/cms/converters.py#newcode347 cms/converters.py:347: from utils ...
April 5, 2015, 1:25 p.m. (2015-04-05 13:25:08 UTC) #3
Sebastian Noack
LGTM http://codereview.adblockplus.org/5148261828526080/diff/5629499534213120/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5148261828526080/diff/5629499534213120/cms/converters.py#newcode347 cms/converters.py:347: from utils import get_page_params On 2015/04/05 13:25:08, kzar ...
April 5, 2015, 1:30 p.m. (2015-04-05 13:30:33 UTC) #4
Wladimir Palant
http://codereview.adblockplus.org/5148261828526080/diff/5724160613416960/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5148261828526080/diff/5724160613416960/cms/converters.py#newcode347 cms/converters.py:347: from utils import get_page_params That's an implicit relative import. ...
April 6, 2015, 7:14 p.m. (2015-04-06 19:14:30 UTC) #5
kzar
Patch Set 3 : Addressed Wladimir's feedback. http://codereview.adblockplus.org/5148261828526080/diff/5724160613416960/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5148261828526080/diff/5724160613416960/cms/converters.py#newcode347 cms/converters.py:347: from utils ...
April 7, 2015, 2:43 p.m. (2015-04-07 14:43:56 UTC) #6
kzar
Patch Set 4 : get_page_content needs to return page title as well.
April 7, 2015, 8:40 p.m. (2015-04-07 20:40:34 UTC) #7
Wladimir Palant
http://codereview.adblockplus.org/5148261828526080/diff/5766466041282560/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5148261828526080/diff/5766466041282560/cms/converters.py#newcode352 cms/converters.py:352: return {k: params[k] for k in ("head", "body", "title")} ...
April 7, 2015, 9:17 p.m. (2015-04-07 21:17:11 UTC) #8
kzar
Patch Set 5 : Addressed further comments. http://codereview.adblockplus.org/5148261828526080/diff/5766466041282560/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5148261828526080/diff/5766466041282560/cms/converters.py#newcode352 cms/converters.py:352: return {k: ...
April 8, 2015, 8:15 a.m. (2015-04-08 08:15:24 UTC) #9
Sebastian Noack
http://codereview.adblockplus.org/5148261828526080/diff/5653164804014080/cms/utils.py File cms/utils.py (right): http://codereview.adblockplus.org/5148261828526080/diff/5653164804014080/cms/utils.py#newcode26 cms/utils.py:26: format = fmt I'd prefer to break when we ...
April 8, 2015, 8:38 a.m. (2015-04-08 08:38:57 UTC) #10
kzar
Patch Set 6 : Use for, break, else control flow for page format guessing. http://codereview.adblockplus.org/5148261828526080/diff/5653164804014080/cms/utils.py ...
April 8, 2015, 8:50 a.m. (2015-04-08 08:50:20 UTC) #11
Sebastian Noack
http://codereview.adblockplus.org/5148261828526080/diff/5709068098338816/cms/utils.py File cms/utils.py (right): http://codereview.adblockplus.org/5148261828526080/diff/5709068098338816/cms/utils.py#newcode23 cms/utils.py:23: for format in converters.keys(): Nit: This creates a new ...
April 8, 2015, 9:09 a.m. (2015-04-08 09:09:32 UTC) #12
kzar
Patch Set 7 : Use .iterkeys() instead of .keys() http://codereview.adblockplus.org/5148261828526080/diff/5709068098338816/cms/utils.py File cms/utils.py (right): http://codereview.adblockplus.org/5148261828526080/diff/5709068098338816/cms/utils.py#newcode23 cms/utils.py:23: ...
April 8, 2015, 9:32 a.m. (2015-04-08 09:32:11 UTC) #13
Sebastian Noack
LGTM
April 8, 2015, 9:38 a.m. (2015-04-08 09:38:15 UTC) #14
Wladimir Palant
April 14, 2015, 4 p.m. (2015-04-14 16:00:00 UTC) #15
LGTM

Powered by Google App Engine
This is Rietveld