[Django] #26263: Deprecate the template Context.has_key() method

11 views
Skip to first unread message

Django

unread,
Feb 22, 2016, 1:24:51 PM2/22/16
to django-...@googlegroups.com
#26263: Deprecate the template Context.has_key() method
-------------------------------------+-------------------------------------
Reporter: timgraham | Owner: timgraham
Type: | Status: new
Cleanup/optimization |
Component: Template | Version: master
system |
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Considering that:

* `Context` is essentially documented as a dict-like object
* `dict.has_key()` exists on Python 2
* this method has been around "forever"

Aymeric favors a deprecation even though it's not documented.

--
Ticket URL: <https://code.djangoproject.com/ticket/26263>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 22, 2016, 1:31:21 PM2/22/16
to django-...@googlegroups.com
#26263: Deprecate the template Context.has_key() method
-------------------------------------+-------------------------------------
Reporter: timgraham | Owner: timgraham
Type: | Status: new
Cleanup/optimization |
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by timgraham):

* has_patch: 0 => 1


Comment:

[https://github.com/django/django/pull/6066 PR]

--
Ticket URL: <https://code.djangoproject.com/ticket/26263#comment:1>

Django

unread,
Feb 23, 2016, 2:56:53 AM2/23/16
to django-...@googlegroups.com
#26263: Deprecate the template Context.has_key() method
-------------------------------------+-------------------------------------
Reporter: timgraham | Owner: timgraham
Type: | Status: new
Cleanup/optimization |
Component: Template system | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by claudep):

* stage: Accepted => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/26263#comment:2>

Django

unread,
Feb 23, 2016, 11:31:01 AM2/23/16
to django-...@googlegroups.com
#26263: Deprecate the template Context.has_key() method
-------------------------------------+-------------------------------------
Reporter: timgraham | Owner: timgraham
Type: | Status: closed

Cleanup/optimization |
Component: Template system | Version: master
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* status: new => closed
* resolution: => fixed


Comment:

In [changeset:"cdbd8745f6c550422170a6ae5928c0b679fab0df" cdbd8745]:
{{{
#!CommitTicketReference repository=""
revision="cdbd8745f6c550422170a6ae5928c0b679fab0df"
Fixed #26263 -- Deprecated Context.has_key()
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26263#comment:3>

Django

unread,
Jan 17, 2017, 10:09:52 PM1/17/17
to django-...@googlegroups.com
#26263: Deprecate the template Context.has_key() method
-------------------------------------+-------------------------------------
Reporter: Tim Graham | Owner: Tim
Type: | Graham
Cleanup/optimization | Status: closed

Component: Template system | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0

Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"740f63a3df2be086917c255421480c568c949f9b" 740f63a3]:
{{{
#!CommitTicketReference repository=""
revision="740f63a3df2be086917c255421480c568c949f9b"
Refs #26263 -- Removed deprecated Context.has_key().
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26263#comment:4>

Reply all
Reply to author
Forward
0 new messages