[Django] #22327: Turn BaseEmailBackend into a contextmanager

2 views
Skip to first unread message

Django

unread,
Mar 24, 2014, 8:11:47 AM3/24/14
to django-...@googlegroups.com
#22327: Turn BaseEmailBackend into a contextmanager
-----------------------------+--------------------
Reporter: DasIch | Owner: nobody
Type: New feature | Status: new
Component: Core (Mail) | Version:
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
-----------------------------+--------------------
It would be useful to turn BaseEmailBackend (and thereby it's subclasses)
into a contextmanager, that calls `.open()` and `.close()`, specifically
for sending multiple mails over the same connection. This is implemented
in a pull request: https://github.com/django/django/pull/2467

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

Django

unread,
Mar 24, 2014, 9:55:12 AM3/24/14
to django-...@googlegroups.com
#22327: Turn BaseEmailBackend into a contextmanager
-----------------------------+------------------------------------

Reporter: DasIch | Owner: nobody
Type: New feature | Status: new
Component: Core (Mail) | 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 timo):

* needs_better_patch: => 0
* needs_docs: => 0
* version: => master
* needs_tests: => 0
* stage: Unreviewed => Accepted


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

Django

unread,
Mar 31, 2014, 2:12:25 PM3/31/14
to django-...@googlegroups.com
#22327: Turn BaseEmailBackend into a contextmanager
-----------------------------+------------------------------------
Reporter: DasIch | Owner: nobody
Type: New feature | Status: closed

Component: Core (Mail) | Version: master
Severity: Normal | Resolution: fixed

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 Tim Graham <timograham@…>):

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


Comment:

In [changeset:"4aa80149e71d02947164a89ec5da6fd035393425"]:
{{{
#!CommitTicketReference repository=""
revision="4aa80149e71d02947164a89ec5da6fd035393425"
Fixed #22327 -- Turned BaseEmailBackend into a context manager

Changed the BaseEmailBackend to allow usage as context manager to open
and close connections.
}}}

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

Reply all
Reply to author
Forward
0 new messages