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

Issue 5521995252891648: Issue 2180 - [cms] Add support for custom Jinja2 functions (Closed)

Created:
March 19, 2015, 9:51 p.m. by Wladimir Palant
Modified:
March 20, 2015, 6:23 p.m.
Reviewers:
Sebastian Noack
Visibility:
Public.

Description

Issue 2180 - [cms] Add support for custom Jinja2 functions

Patch Set 1 : #

Total comments: 3

Patch Set 2 : Generalized to all globals #

Total comments: 4

Patch Set 3 : Use callable() #

Patch Set 4 : Better comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -16 lines) Patch
M README.md View 1 2 chunks +12 lines, -3 lines 0 comments Download
M cms/converters.py View 1 2 3 1 chunk +22 lines, -13 lines 0 comments Download

Messages

Total messages: 8
Wladimir Palant
March 19, 2015, 9:51 p.m. (2015-03-19 21:51:58 UTC) #1
Sebastian Noack
http://codereview.adblockplus.org/5521995252891648/diff/5741031244955648/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5521995252891648/diff/5741031244955648/cms/converters.py#newcode271 cms/converters.py:271: for dirname, dictionary in [("filters", filters), ("functions", globals)]: How ...
March 20, 2015, 9:49 a.m. (2015-03-20 09:49:43 UTC) #2
Wladimir Palant
http://codereview.adblockplus.org/5521995252891648/diff/5741031244955648/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5521995252891648/diff/5741031244955648/cms/converters.py#newcode271 cms/converters.py:271: for dirname, dictionary in [("filters", filters), ("functions", globals)]: On ...
March 20, 2015, 4:02 p.m. (2015-03-20 16:02:24 UTC) #3
Sebastian Noack
http://codereview.adblockplus.org/5521995252891648/diff/5741031244955648/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5521995252891648/diff/5741031244955648/cms/converters.py#newcode271 cms/converters.py:271: for dirname, dictionary in [("filters", filters), ("functions", globals)]: On ...
March 20, 2015, 4:10 p.m. (2015-03-20 16:10:54 UTC) #4
Wladimir Palant
http://codereview.adblockplus.org/5521995252891648/diff/5757334940811264/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5521995252891648/diff/5757334940811264/cms/converters.py#newcode286 cms/converters.py:286: if hasattr(dictionary[name], "__call__"): On 2015/03/20 16:10:54, Sebastian Noack wrote: ...
March 20, 2015, 4:21 p.m. (2015-03-20 16:21:12 UTC) #5
Sebastian Noack
http://codereview.adblockplus.org/5521995252891648/diff/5757334940811264/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5521995252891648/diff/5757334940811264/cms/converters.py#newcode286 cms/converters.py:286: if hasattr(dictionary[name], "__call__"): On 2015/03/20 16:21:12, Wladimir Palant wrote: ...
March 20, 2015, 4:26 p.m. (2015-03-20 16:26:53 UTC) #6
Wladimir Palant
http://codereview.adblockplus.org/5521995252891648/diff/5757334940811264/cms/converters.py File cms/converters.py (right): http://codereview.adblockplus.org/5521995252891648/diff/5757334940811264/cms/converters.py#newcode286 cms/converters.py:286: if hasattr(dictionary[name], "__call__"): On 2015/03/20 16:26:54, Sebastian Noack wrote: ...
March 20, 2015, 4:42 p.m. (2015-03-20 16:42:50 UTC) #7
Sebastian Noack
March 20, 2015, 4:44 p.m. (2015-03-20 16:44:44 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld