Tim Abbott
28a4c143c8
emails: Move clear_scheduled_*emails to send_email.py.
...
It more properly belongs as part of our outgoing email library, not
notifications.py (which is really about email notifications).
2019-03-15 11:02:17 -07:00
Raymond Akornor
89351cdd19
send_email: Add ScheduledEmail support for multiple recipients.
...
Follow up on 92dc363
. This modifies the ScheduledEmail model
and send_future_email to properly support multiple recipients.
Tweaked by tabbott to add some useful explanatory comments and fix
issues with the migration.
2019-03-15 11:02:12 -07:00
Anders Kaseorg
4e21cc0152
views: Remove unused imports.
...
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2019-02-02 17:23:43 -08:00
Roger Souza
6179bba2bd
emails: Add one-click unsubscribe link to new login emails.
...
Fixes : #10547 .
2018-11-08 14:39:33 -08:00
Vishnu Ks
54a002c2e2
requirements: Upgrade pyflakes to 2.0.0.
...
We fix a few errors that only the new version finds.
2018-05-24 11:31:36 -07:00
Rishi Gupta
1823d46236
unsubscribe: Use a custom confirmation error page.
...
Reverts a bit of 6e02ce8
.
2017-11-07 16:02:49 -08:00
Rishi Gupta
6e02ce8344
unsubscribe: Use get_object_from_key for confirmation.
...
This is the only one of the confirmation pathways that wasn't using this
idiom, I think.
2017-11-03 15:33:16 -07:00
rht
45e8ce559d
zerver/views: Use python 3 syntax for typing.
2017-10-26 21:58:22 -07:00
rht
15ca13c8de
zerver/views: Remove absolute_import.
2017-09-27 10:00:39 -07:00
Rishi Gupta
36dbb76516
emails: Rename clear_followup_emails_queue.
2017-07-17 16:05:38 -07:00
Rishi Gupta
5b3e6af2e5
emails: Remove only emails of the correct type when clearing queue.
2017-07-17 16:05:38 -07:00
Rishi Gupta
f51bd898dc
notifications: Change clear_followup_emails_queue to take a user_id.
2017-07-17 16:05:38 -07:00
Rishi Gupta
0f46fd86dd
urls: Rename arguments to accounts/unsubscribe.
...
type -> email_type to match future work on ScheduledJob.
token -> confirmation_key to match what the other confirmation views urls
call this argument.
2017-07-07 18:56:14 -07:00
Matt Long
19363b2b77
notification_settings: Refactor notification preference settings.
...
Previously, all notification preference setting had a dedicated test
and setter. Now, all are handled through a modular function using the
property_types framework.
2017-05-23 14:47:46 -07:00
Umair Khan
4442703011
jinja2: No need for custom render_to_response.
...
Django 1.10 has changed the implementation of this function to
match our custom implementation; in addition to this, we prefer
render().
Fixes #1914 via #4093 .
2017-03-17 13:57:34 -07:00
Umair Khan
62a580a37f
unsubscribe: Change render_to_response to render.
...
Related to #4093
2017-03-17 13:52:59 -07:00
Umair Khan
14c2b40acc
unsubscribe.py: Pass request to process_subscribe.
...
We are changing render_to_respone to render; render takes
request as an argument.
2017-03-17 13:52:59 -07:00
Tim Abbott
d6e38e2a5c
lint: Clean up E123 PEP-8 rule.
2017-01-23 21:34:26 -08:00
paxapy
ff1e97603d
context_processors: use a common context for emails.
...
Fixes #1611 .
2016-11-08 11:37:16 -08:00
Tim Abbott
0c02015541
views: Move one-click unsubscribe to its own file.
2016-10-11 21:27:06 -07:00