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

Issue 29398791: Issue 5044 - Support absolute paths for Jinja templates (Closed)

Created:
March 30, 2017, 5:13 p.m. by Vasily Kuznetsov
Modified:
April 4, 2017, 4:57 p.m.
CC:
mathias
Visibility:
Public.

Description

Issue 5044 - Support absolute paths for Jinja templates Repository: https://hg.adblockplus.org/sitescripts/ Base revision: add7e39f7e4d

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address reviewer comments on patch set 1 #

Total comments: 2

Patch Set 3 : Address review feedback on patch set 2 #

Total comments: 10
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -4 lines) Patch
M sitescripts/utils.py View 1 2 1 chunk +13 lines, -2 lines 0 comments Download
A tests/test_utils.py View 1 chunk +38 lines, -0 lines 10 comments Download
M tox.ini View 1 2 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 15
Vasily Kuznetsov
This patch enables support for using absolute paths for Jinja templates anywhere in sitescripts (it's ...
March 30, 2017, 5:35 p.m. (2017-03-30 17:35:10 UTC) #1
Sebastian Noack
Adding Wladimir as reviewer. As far as I know, he was the one introducing jinja2 ...
March 30, 2017, 5:41 p.m. (2017-03-30 17:41:24 UTC) #2
Wladimir Palant
https://codereview.adblockplus.org/29398791/diff/29398792/sitescripts/utils.py File sitescripts/utils.py (right): https://codereview.adblockplus.org/29398791/diff/29398792/sitescripts/utils.py#newcode160 sitescripts/utils.py:160: key = (template_path, template, autoescape) This caching key wasn't ...
March 30, 2017, 5:47 p.m. (2017-03-30 17:47:42 UTC) #3
Vasily Kuznetsov
Thank you for the fast response. Here's patch set 2. https://codereview.adblockplus.org/29398791/diff/29398792/sitescripts/utils.py File sitescripts/utils.py (right): https://codereview.adblockplus.org/29398791/diff/29398792/sitescripts/utils.py#newcode160 ...
March 30, 2017, 6:35 p.m. (2017-03-30 18:35:53 UTC) #4
Sebastian Noack
https://codereview.adblockplus.org/29398791/diff/29398796/sitescripts/utils.py File sitescripts/utils.py (right): https://codereview.adblockplus.org/29398791/diff/29398796/sitescripts/utils.py#newcode161 sitescripts/utils.py:161: key = (canonical_path, autoescape) Note that following are NOT ...
March 31, 2017, 6:33 a.m. (2017-03-31 06:33:42 UTC) #5
Vasily Kuznetsov
https://codereview.adblockplus.org/29398791/diff/29398796/sitescripts/utils.py File sitescripts/utils.py (right): https://codereview.adblockplus.org/29398791/diff/29398796/sitescripts/utils.py#newcode161 sitescripts/utils.py:161: key = (canonical_path, autoescape) On 2017/03/31 06:33:42, Sebastian Noack ...
March 31, 2017, 4:01 p.m. (2017-03-31 16:01:48 UTC) #6
Sebastian Noack
LGTM
April 1, 2017, 1:26 p.m. (2017-04-01 13:26:35 UTC) #7
Jon Sonesen
Looks pretty good just a couple questions on the tests :) Thanks! https://codereview.adblockplus.org/29398791/diff/29399792/tests/test_utils.py File tests/test_utils.py ...
April 3, 2017, 7:42 a.m. (2017-04-03 07:42:41 UTC) #8
Vasily Kuznetsov
https://codereview.adblockplus.org/29398791/diff/29399792/tests/test_utils.py File tests/test_utils.py (right): https://codereview.adblockplus.org/29398791/diff/29399792/tests/test_utils.py#newcode22 tests/test_utils.py:22: """Load template from inside sitescripts.""" On 2017/04/03 07:42:41, Jon ...
April 3, 2017, 8:59 a.m. (2017-04-03 08:59:25 UTC) #9
Jon Sonesen
Regarding the docsrings as mentioned in the comment I brought this up since you suggested ...
April 3, 2017, 9:03 a.m. (2017-04-03 09:03:23 UTC) #10
Sebastian Noack
https://codereview.adblockplus.org/29398791/diff/29399792/tests/test_utils.py File tests/test_utils.py (right): https://codereview.adblockplus.org/29398791/diff/29399792/tests/test_utils.py#newcode22 tests/test_utils.py:22: """Load template from inside sitescripts.""" On 2017/04/03 09:03:23, Jon ...
April 3, 2017, 9:51 a.m. (2017-04-03 09:51:43 UTC) #11
Vasily Kuznetsov
https://codereview.adblockplus.org/29398791/diff/29399792/tests/test_utils.py File tests/test_utils.py (right): https://codereview.adblockplus.org/29398791/diff/29399792/tests/test_utils.py#newcode22 tests/test_utils.py:22: """Load template from inside sitescripts.""" On 2017/04/03 09:03:23, Jon ...
April 3, 2017, 10:25 a.m. (2017-04-03 10:25:16 UTC) #12
Wladimir Palant
LGTM
April 4, 2017, 1:13 p.m. (2017-04-04 13:13:33 UTC) #13
Jon Sonesen
On 2017/04/03 10:25:16, Vasily Kuznetsov wrote: > https://codereview.adblockplus.org/29398791/diff/29399792/tests/test_utils.py > File tests/test_utils.py (right): > > https://codereview.adblockplus.org/29398791/diff/29399792/tests/test_utils.py#newcode22 ...
April 4, 2017, 1:17 p.m. (2017-04-04 13:17:10 UTC) #14
Vasily Kuznetsov
April 4, 2017, 4:57 p.m. (2017-04-04 16:57:12 UTC) #15
Thanks to everyone for the review. I will check sitescripts configs on the
servers to make sure this doesn't cause unexpected regressions and then will
push it.

Powered by Google App Engine
This is Rietveld