Skip to content
Myr

merged.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

--HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parents eaa1d64, 619eeed · Browse files · 3 files+9 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+9 added−3 removed

  • other:+9 added−3 removed

3 files+9 added−3 removed

modified:ext/django2jinja/django2jinja.py+4 added-1 removed
84 unmodified lines
85_resolved_filters = {}86_newline_re = re.compile(r'(?:\r\n|\r|\n)')878889# don't ask....89# Django stores an itertools object on the cycle node. Not only is this90# thread unsafe but also a problem for the converter which needs the raw91# string values passed to the constructor to create a jinja loop.cycle()92# call from it.93_old_cycle_init = core_tags.CycleNode.__init__94def _fixed_cycle_init(self, cyclevars, variable_name=None):95 self.raw_cycle_vars = map(Variable, cyclevars)96 _old_cycle_init(self, cyclevars, variable_name)
672 unmodified lines
modified:jinja2/environment.py+2 added-2 removed
189 unmodified lines
190 #: have a look at jinja2.sandbox191 sandboxed = False192193 #: True if the environment is just an overlay194 overlay = False194 overlayed = False195196 #: the environment this environment is linked to if it is an overlay197 linked_to = None198
103 unmodified lines
302 del args['self'], args['cache_size'], args['extensions']303304 rv = object.__new__(self.__class__)305 rv.__dict__.update(self.__dict__)306 rv.overlay = True306 rv.overlayed = True307 rv.linked_to = self308309 for key, value in args.iteritems():310 if value is not missing:
560 unmodified lines
modified:CHANGES+3 added
19 unmodified lines
20 *before* the loop. (#331)21- Added support for optional `scoped` modifier to blocks.22- Added support for line-comments.23- Added the `meta` module.24- Renamed (undocumented) attribute overlay to overlayed on the environment25 because it was clashing with a method of the same name. The new attribute26 is called "overlayed".2728Version 2.1.129-------------30(Bugfix release)
84 unmodified lines