Skip to content
Myr

Renamed (undocumented) attribute overlay to overlayed on the environment

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

because it was clashing with a method of the same name. The new attribute is called "overlayed". --HG-- branch : trunk

authored by Armin Ronacher · committed by Armin Ronacher · parent 0e4284b · Browse files · 2 files+5 added−2 removed
This commit

State

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

Diff stats

2 files+5 added−2 removed

  • other:+5 added−2 removed

2 files+5 added−2 removed

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
18 unmodified lines
19 variable and regular variable *after* the loop if that variable was unused20 *before* the loop. (#331)21- Added support for optional `scoped` modifier to blocks.22- Added support for line-comments.23- Renamed (undocumented) attribute overlay to overlayed on the environment24 because it was clashing with a method of the same name. The new attribute25 is called "overlayed".2627Version 2.1.128-------------29(Bugfix release)
84 unmodified lines